org.yawlfoundation.yawl.worklet.support
Class WorkletRecord

java.lang.Object
  extended by org.yawlfoundation.yawl.worklet.support.WorkletRecord
Direct Known Subclasses:
CheckedOutChildItem, HandlerRunner

public class WorkletRecord
extends Object

The WorkletRecord class maintains a generic dataset for derived classes that manage a currently running worklet for a 'parent' process. It is implemented by selection.CheckedOutChildItem and exception.HandlerRunner

Version:
0.8, 04-09/2006
Author:
Michael Adams

Field Summary
protected  org.jdom.Element _datalist
           
protected  boolean _hasPersisted
           
protected static org.apache.log4j.Logger _log
           
protected  String _persistID
           
protected  RuleType _reasonType
           
protected  CaseMap _runners
           
protected  String _runningCaseIdStr
           
protected  String _runningWorkletStr
           
protected  RdrNode[] _searchPair
           
protected  String _searchPairStr
           
protected  WorkItemRecord _wir
           
protected  String _wirStr
           
 
Constructor Summary
WorkletRecord()
          Constructs a basic WorkletRecord
 
Method Summary
 void addRunner(String caseID, String wName)
           
protected  String createFileName()
           
protected  int get_reasonType()
           
protected  String get_runningCaseIdStr()
           
protected  String get_runningWorkletStr()
           
 String get_searchPairStr()
           
 String get_wirStr()
           
 String getCaseID()
           
 Map<String,String> getCaseMapAsCSVList()
           
 org.jdom.Element getDatalist()
           
 WorkItemRecord getItem()
           
 String getItemId()
           
 RuleType getReasonType()
           
 Set<String> getRunningCaseIds()
           
 RdrNode[] getSearchPair()
           
 YSpecificationID getSpecID()
           
 String getWorkletCaseID(String wName)
           
 Set<String> getWorkletList()
           
 String getWorkletName(String caseID)
           
 boolean hasRunningWorklet()
           
 void ObjectPersisted()
           
protected  void persistThis()
           
 void rebuildSearchPair(YSpecificationID specID, String taskID)
           
 void removeAllCases()
           
 void removeRunnerByCaseID(String caseID)
           
 void removeRunnerByWorkletName(String wName)
           
 void restoreCaseMap()
           
protected  void saveDocument(String fileName, org.jdom.Document doc)
          saves a JDOM Document to a file
 void saveSearchResults()
          writes the node id's for the nodes returned from the rdr search and the data for the current workitem, to a file for later input into the 'add rule' process, if required
protected  void set_reasonType(int i)
           
protected  void set_runningCaseIdStr(String s)
           
protected  void set_runningWorkletStr(String s)
           
protected  void set_searchPairStr(String s)
           
protected  void set_wirStr(String s)
           
 void setDatalist(org.jdom.Element d)
           
 void setExType(RuleType xType)
           
 void setItem(WorkItemRecord w)
           
 void setSearchPair(RdrNode[] pair)
           
 String toString()
          returns a String representation of current WorkletRecord
 String toStringSub()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_runners

protected CaseMap _runners

_wir

protected WorkItemRecord _wir

_datalist

protected org.jdom.Element _datalist

_searchPair

protected RdrNode[] _searchPair

_reasonType

protected RuleType _reasonType

_log

protected static org.apache.log4j.Logger _log

_persistID

protected String _persistID

_hasPersisted

protected boolean _hasPersisted

_searchPairStr

protected String _searchPairStr

_wirStr

protected String _wirStr

_runningCaseIdStr

protected String _runningCaseIdStr

_runningWorkletStr

protected String _runningWorkletStr
Constructor Detail

WorkletRecord

public WorkletRecord()
Constructs a basic WorkletRecord

Method Detail

setItem

public void setItem(WorkItemRecord w)

setDatalist

public void setDatalist(org.jdom.Element d)

addRunner

public void addRunner(String caseID,
                      String wName)

setSearchPair

public void setSearchPair(RdrNode[] pair)

setExType

public void setExType(RuleType xType)

removeRunnerByCaseID

public void removeRunnerByCaseID(String caseID)

removeRunnerByWorkletName

public void removeRunnerByWorkletName(String wName)

removeAllCases

public void removeAllCases()

getWorkletName

public String getWorkletName(String caseID)

getWorkletCaseID

public String getWorkletCaseID(String wName)

getWorkletList

public Set<String> getWorkletList()

getCaseMapAsCSVList

public Map<String,String> getCaseMapAsCSVList()

getItem

public WorkItemRecord getItem()

getItemId

public String getItemId()

getSearchPair

public RdrNode[] getSearchPair()

getRunningCaseIds

public Set<String> getRunningCaseIds()

getDatalist

public org.jdom.Element getDatalist()

getCaseID

public String getCaseID()

getSpecID

public YSpecificationID getSpecID()

getReasonType

public RuleType getReasonType()

hasRunningWorklet

public boolean hasRunningWorklet()

set_wirStr

protected void set_wirStr(String s)

get_wirStr

public String get_wirStr()

set_runningCaseIdStr

protected void set_runningCaseIdStr(String s)

get_runningCaseIdStr

protected String get_runningCaseIdStr()

set_runningWorkletStr

protected void set_runningWorkletStr(String s)

set_reasonType

protected void set_reasonType(int i)

get_runningWorkletStr

protected String get_runningWorkletStr()

get_reasonType

protected int get_reasonType()

set_searchPairStr

protected void set_searchPairStr(String s)

get_searchPairStr

public String get_searchPairStr()

rebuildSearchPair

public void rebuildSearchPair(YSpecificationID specID,
                              String taskID)

restoreCaseMap

public void restoreCaseMap()

ObjectPersisted

public void ObjectPersisted()

persistThis

protected void persistThis()

saveSearchResults

public void saveSearchResults()
writes the node id's for the nodes returned from the rdr search and the data for the current workitem, to a file for later input into the 'add rule' process, if required


saveDocument

protected void saveDocument(String fileName,
                            org.jdom.Document doc)
saves a JDOM Document to a file


createFileName

protected String createFileName()

toString

public String toString()
returns a String representation of current WorkletRecord

Overrides:
toString in class Object

toStringSub

public String toStringSub()


Copyright © 2004-2012 The YAWL Foundation.