public class YWorkItem
extends java.lang.Object
Constructor and Description |
---|
YWorkItem() |
YWorkItem(YPersistenceManager pmgr,
YSpecificationID specID,
YTask task,
YWorkItemID workItemID,
boolean allowsDynamicCreation,
boolean isDeadlocked)
Creates an enabled WorkItem
|
Modifier and Type | Method and Description |
---|---|
void |
add_child(YWorkItem child) |
void |
add_children(java.util.Set children) |
void |
addToRepository() |
boolean |
allowsDynamicCreation() |
void |
cancel(YPersistenceManager pmgr)
removes workitems from persistence when cancelled
|
void |
cancelTimer() |
void |
checkStartTimer(YPersistenceManager pmgr,
YNetData data) |
void |
completeData(Document output)
write output data values to event log
|
YWorkItem |
createChild(YPersistenceManager pmgr,
YIdentifier childCaseID) |
boolean |
equals(java.lang.Object other) |
boolean |
get_allowsDynamicCreation() |
java.util.Set |
get_children() |
java.lang.String |
get_dataString() |
java.lang.String |
get_deferredChoiceGroupID() |
java.util.Date |
get_enablementTime() |
java.lang.String |
get_externalClient() |
java.util.Date |
get_firingTime() |
YWorkItem |
get_parent() |
java.lang.String |
get_prevStatus() |
java.lang.String |
get_specIdentifier() |
java.lang.String |
get_specUri() |
java.lang.String |
get_specVersion() |
java.util.Date |
get_startTime() |
java.lang.String |
get_status() |
java.lang.String |
get_thisID() |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
YIdentifier |
getCaseID() |
java.util.Set<YWorkItem> |
getChildren() |
java.lang.String |
getCodelet() |
java.net.URL |
getCustomFormURL() |
Element |
getDataElement() |
java.lang.String |
getDataString() |
java.lang.String |
getDeferredChoiceGroupID() |
java.lang.String |
getDocumentation() |
java.util.Date |
getEnablementTime() |
java.lang.String |
getEnablementTimeStr() |
YClient |
getExternalClient() |
java.util.Date |
getFiringTime() |
java.lang.String |
getFiringTimeStr() |
java.lang.String |
getIDString() |
YNetRunner |
getNetRunner() |
YWorkItem |
getParent() |
YSpecificationID |
getSpecificationID() |
java.lang.String |
getSpecName() |
java.util.Date |
getStartTime() |
java.lang.String |
getStartTimeStr() |
YWorkItemStatus |
getStatus() |
YTask |
getTask() |
java.lang.String |
getTaskID() |
long |
getTimerExpiry() |
YTimerParameters |
getTimerParameters() |
java.lang.String |
getTimerStatus() |
YWorkItemID |
getWorkItemID() |
boolean |
hasChildren() |
boolean |
hasCompletedStatus() |
boolean |
hasFinishedStatus() |
int |
hashCode() |
boolean |
hasLiveStatus() |
boolean |
hasTimerStarted() |
boolean |
hasUnfinishedStatus() |
boolean |
isEnabledSuspended() |
boolean |
isParent() |
boolean |
requiresManualResourcing() |
void |
restoreDataToNet(java.util.Set<YAWLServiceReference> services) |
void |
rollBackStatus(YPersistenceManager pmgr) |
void |
set_allowsDynamicCreation(boolean a) |
void |
set_dataString(java.lang.String s) |
void |
set_deferredChoiceGroupID(java.lang.String id) |
void |
set_enablementTime(java.util.Date eTime) |
void |
set_externalClient(java.lang.String owner) |
void |
set_firingTime(java.util.Date fTime) |
void |
set_parent(YWorkItem parent) |
void |
set_prevStatus(java.lang.String status) |
void |
set_specIdentifier(java.lang.String id) |
void |
set_specUri(java.lang.String uri) |
void |
set_specVersion(java.lang.String version) |
void |
set_startTime(java.util.Date sTime) |
void |
set_status(java.lang.String status) |
void |
set_thisID(java.lang.String thisID) |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
protected void |
setChildren(java.util.Set<YWorkItem> children) |
void |
setCodelet(java.lang.String codelet) |
void |
setCustomFormURL(java.net.URL formURL) |
void |
setData(YPersistenceManager pmgr,
Element data)
write data input values to event log
|
void |
setDeferredChoiceGroupID(java.lang.String id) |
void |
setExternalLogPredicate(java.lang.String predicate) |
void |
setInitData(Element data) |
void |
setRequiresManualResourcing(boolean requires) |
void |
setStatus(YWorkItemStatus status) |
void |
setStatusToComplete(YPersistenceManager pmgr,
WorkItemCompletion completionFlag) |
void |
setStatusToDeleted(YPersistenceManager pmgr) |
void |
setStatusToDiscarded()
announces and logs that this workitem has been discarded - ie.
|
void |
setStatusToStarted(YPersistenceManager pmgr,
YClient client) |
void |
setStatusToSuspended(YPersistenceManager pmgr) |
void |
setStatusToUnsuspended(YPersistenceManager pmgr) |
void |
setTask(YTask task) |
void |
setTimerExpiry(long time) |
void |
setTimerParameters(YTimerParameters params) |
void |
setTimerStarted(boolean started) |
void |
setWorkItemID(YWorkItemID workitemid) |
java.lang.String |
toString() |
java.lang.String |
toXML() |
public YWorkItem()
public YWorkItem(YPersistenceManager pmgr, YSpecificationID specID, YTask task, YWorkItemID workItemID, boolean allowsDynamicCreation, boolean isDeadlocked) throws YPersistenceException
YPersistenceException
public void addToRepository()
public YWorkItem createChild(YPersistenceManager pmgr, YIdentifier childCaseID) throws YPersistenceException
YPersistenceException
public void setExternalLogPredicate(java.lang.String predicate)
public void setData(YPersistenceManager pmgr, Element data) throws YPersistenceException
YPersistenceException
public void completeData(Document output)
public void restoreDataToNet(java.util.Set<YAWLServiceReference> services) throws YPersistenceException
YPersistenceException
public void cancel(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void checkStartTimer(YPersistenceManager pmgr, YNetData data) throws YPersistenceException
YPersistenceException
public void cancelTimer()
public boolean hasLiveStatus()
public boolean hasFinishedStatus()
public boolean hasCompletedStatus()
public boolean isParent()
public boolean hasUnfinishedStatus()
public boolean isEnabledSuspended()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setStatusToStarted(YPersistenceManager pmgr, YClient client) throws YPersistenceException
YPersistenceException
public void setStatusToComplete(YPersistenceManager pmgr, WorkItemCompletion completionFlag) throws YPersistenceException
YPersistenceException
public void setStatusToDeleted(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void setStatusToDiscarded()
public void rollBackStatus(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void setStatusToSuspended(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void setStatusToUnsuspended(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void set_parent(YWorkItem parent)
public YWorkItem get_parent()
public java.util.Set get_children()
public boolean hasChildren()
public void add_child(YWorkItem child)
public void add_children(java.util.Set children)
protected void setChildren(java.util.Set<YWorkItem> children)
public void setWorkItemID(YWorkItemID workitemid)
public java.lang.String get_thisID()
public void set_thisID(java.lang.String thisID)
public java.lang.String get_specIdentifier()
public java.lang.String get_specVersion()
public java.lang.String get_specUri()
public void set_specIdentifier(java.lang.String id)
public void set_specUri(java.lang.String uri)
public void set_specVersion(java.lang.String version)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public boolean requiresManualResourcing()
public void setRequiresManualResourcing(boolean requires)
public java.lang.String getCodelet()
public void setCodelet(java.lang.String codelet)
public java.net.URL getCustomFormURL()
public void setCustomFormURL(java.net.URL formURL)
public java.lang.String get_deferredChoiceGroupID()
public void set_deferredChoiceGroupID(java.lang.String id)
public java.util.Date get_enablementTime()
public void set_enablementTime(java.util.Date eTime)
public java.util.Date get_firingTime()
public void set_firingTime(java.util.Date fTime)
public java.util.Date get_startTime()
public void set_startTime(java.util.Date sTime)
public java.lang.String get_status()
public void set_status(java.lang.String status)
public java.lang.String get_prevStatus()
public void set_prevStatus(java.lang.String status)
public java.lang.String get_externalClient()
public void set_externalClient(java.lang.String owner)
public boolean get_allowsDynamicCreation()
public void set_allowsDynamicCreation(boolean a)
public java.lang.String get_dataString()
public void set_dataString(java.lang.String s)
public void setInitData(Element data)
public void setStatus(YWorkItemStatus status)
public YWorkItemID getWorkItemID()
public java.util.Date getEnablementTime()
public java.lang.String getEnablementTimeStr()
public java.util.Date getFiringTime()
public java.lang.String getFiringTimeStr()
public java.util.Date getStartTime()
public java.lang.String getStartTimeStr()
public YWorkItemStatus getStatus()
public YWorkItem getParent()
public java.util.Set<YWorkItem> getChildren()
public YIdentifier getCaseID()
public java.lang.String getTaskID()
public java.lang.String getIDString()
public java.lang.String getDeferredChoiceGroupID()
public void setDeferredChoiceGroupID(java.lang.String id)
public java.lang.String getSpecName()
public YSpecificationID getSpecificationID()
public YTimerParameters getTimerParameters()
public void setTimerParameters(YTimerParameters params)
public boolean hasTimerStarted()
public void setTimerStarted(boolean started)
public long getTimerExpiry()
public void setTimerExpiry(long time)
public java.lang.String getTimerStatus()
public boolean allowsDynamicCreation()
public java.lang.String toString()
toString
in class java.lang.Object
public YClient getExternalClient()
public YNetRunner getNetRunner()
public Element getDataElement()
public java.lang.String getDataString()
public YTask getTask()
public void setTask(YTask task)
public java.lang.String getDocumentation()
public java.lang.String toXML()
Copyright © 2004-2014 The YAWL Foundation.