|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.yawlfoundation.yawl.elements.YNetElement
org.yawlfoundation.yawl.elements.YExternalNetElement
org.yawlfoundation.yawl.elements.YTask
org.yawlfoundation.yawl.elements.YAtomicTask
public class YAtomicTask
A YAtomicTask object is the executable equivalent of the Atomic Task in the YAWL language. They have the same properties and behaviour.
| Field Summary |
|---|
| Fields inherited from class org.yawlfoundation.yawl.elements.YTask |
|---|
_AND, _dataMappingsForTaskEnablement, _dataMappingsForTaskStarting, _decompositionPrototype, _i, _mi_active, _mi_complete, _mi_entered, _mi_executing, _multiInstAttr, _OR, _XOR |
| Fields inherited from class org.yawlfoundation.yawl.elements.YExternalNetElement |
|---|
_documentation, _name, _net |
| Constructor Summary | |
|---|---|
YAtomicTask(String id,
int joinType,
int splitType,
YNet container)
Constructs a new atomic task. |
|
| Method Summary | |
|---|---|
void |
cancel(YPersistenceManager pmgr)
Cancels a task. |
void |
cancel(YPersistenceManager pmgr,
YIdentifier caseID)
Cancels the task. |
Object |
clone()
Clones this atomic task. |
Map |
getDataMappingsForEnablement()
Deprecated. Since 2.0, enablement mappings have no function. |
boolean |
isRunning()
Checks that a task is currently executing. |
org.jdom.Element |
prepareEnablementData()
Deprecated. Since 2.0, enablement mappings have no function. |
void |
setDataMappingsForEnablement(Map<String,String> map)
Deprecated. Since 2.0, enablement mappings have no function. |
protected void |
startOne(YPersistenceManager pmgr,
YIdentifier id)
Changes the inner state of an atomic task from entered to executing. |
boolean |
t_rollBackToFired(YPersistenceManager pmgr,
YIdentifier caseID)
Rolls back a task's inner state from 'executing' to 'entered'. |
List<YVerificationMessage> |
verify()
Verifies this atomic task definition against YAWL semantics. |
| Methods inherited from class org.yawlfoundation.yawl.elements.YExternalNetElement |
|---|
addPostset, addPreset, addToCancelledBySet, addToYawlMappings, addToYawlMappings, getCancelledBySet, getDocumentation, getDocumentationPreParsed, getName, getNet, getPostsetElement, getPostsetElements, getPostsetFlow, getPostsetFlows, getPresetElement, getPresetElements, getPresetFlow, getPresetFlows, getProperID, getYawlMappings, removeFromCancelledBySet, removePostsetFlow, removePresetFlow, setDocumentation, setName, verifyPostsetFlows, verifyPresetFlows |
| Methods inherited from class org.yawlfoundation.yawl.elements.YNetElement |
|---|
compareTo, getID, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public YAtomicTask(String id,
int joinType,
int splitType,
YNet container)
id - the task identifier.joinType - the task's join type.splitType - the task's split type.container - the task's containing net.YTask| Method Detail |
|---|
public void setDataMappingsForEnablement(Map<String,String> map)
map - a map of [variable name, query] pairs.
protected void startOne(YPersistenceManager pmgr,
YIdentifier id)
throws YPersistenceException
startOne in class YTaskpmgr - an instantiated persistence manager object.id - the identifier to move from inner marking 'entered' to inner marking
'executing'.
YPersistenceException - if there's a problem persisting the change.public boolean isRunning()
public void cancel(YPersistenceManager pmgr)
throws YPersistenceException
cancel in class YTaskpmgr - an instantiated persistence manager object.
YPersistenceException - if there's a problem persisting the change.
public void cancel(YPersistenceManager pmgr,
YIdentifier caseID)
throws YPersistenceException
pmgr - an instantiated persistence manager object.caseID - the case identifier of this atomic task.
YPersistenceException - if there's a problem persisting the change.
public boolean t_rollBackToFired(YPersistenceManager pmgr,
YIdentifier caseID)
throws YPersistenceException
pmgr - an instantiated persistence manager object.caseID - the case identifier of this atomic task.
YPersistenceException - if there's a problem persisting the change.
public Object clone()
throws CloneNotSupportedException
clone in class YTaskCloneNotSupportedException - if there's a problem cloning the task.public Map getDataMappingsForEnablement()
public org.jdom.Element prepareEnablementData()
throws YQueryException,
YDataStateException
YQueryException - if thre's a problem with a query evaluation.
YDataStateException - if there's a problem with the evaluated data.
YStateException - if there's a problem setting the task state.public List<YVerificationMessage> verify()
verify in interface YVerifiableverify in class YTaskYVerificationMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||