public class YNetRunner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
YNetRunner.ExecutionStatus |
Modifier | Constructor and Description |
---|---|
protected |
YNetRunner() |
|
YNetRunner(YPersistenceManager pmgr,
YNet netPrototype,
Element paramsData,
java.lang.String caseID) |
|
YNetRunner(YPersistenceManager pmgr,
YNet netPrototype,
YCompositeTask container,
YIdentifier caseIDForNet,
Element incomingData)
Constructor called by a composite task (creating a sub-net runner)
|
Modifier and Type | Method and Description |
---|---|
void |
addBusyTask(YTask ext) |
void |
addEnabledTask(YTask ext) |
YIdentifier |
addNewInstance(YPersistenceManager pmgr,
java.lang.String taskID,
YIdentifier aSiblingInstance,
Element newInstanceData) |
java.util.List<YIdentifier> |
attemptToFireAtomicTask(YPersistenceManager pmgr,
java.lang.String taskID) |
void |
cancel(YPersistenceManager pmgr) |
void |
cancelTask(YPersistenceManager pmgr,
java.lang.String taskID)
cancels the specified task
|
boolean |
completeWorkItemInTask(YPersistenceManager pmgr,
YWorkItem workItem,
Document outputData) |
boolean |
completeWorkItemInTask(YPersistenceManager pmgr,
YWorkItem workItem,
YIdentifier caseID,
java.lang.String taskID,
Document outputData) |
boolean |
continueIfPossible(YPersistenceManager pmgr) |
void |
dump() |
boolean |
endOfNetReached() |
boolean |
equals(java.lang.Object other) |
boolean |
evaluateTimerPredicate(java.lang.String predicate) |
java.lang.String |
get_caseID() |
YIdentifier |
get_caseIDForNet() |
protected java.lang.String |
get_caseObserverStr()
these two methods are here to support persistence of the IB Observer
|
java.util.Map<java.lang.String,java.lang.String> |
get_timerStates() |
protected java.util.Set<YTask> |
getActiveTasks() |
java.util.Set<java.lang.String> |
getBusyTaskNames() |
protected java.util.Set<YTask> |
getBusyTasks() |
YIdentifier |
getCaseID() |
java.lang.String |
getContainingTaskID() |
java.util.Set<java.lang.String> |
getEnabledTaskNames() |
protected java.util.Set<YTask> |
getEnabledTasks() |
java.lang.String |
getExecutionStatus() |
YNet |
getNet() |
YNetData |
getNetData() |
YExternalNetElement |
getNetElement(java.lang.String id) |
YSpecificationID |
getSpecificationID() |
long |
getStartTime() |
java.util.List<java.lang.String> |
getTimeOutTaskSet(YWorkItem item)
returns a list of all workitems executing in parallel to the time-out
workitem passed (the list includes the time-out task)
|
protected boolean |
hasActiveTasks() |
int |
hashCode() |
boolean |
hasNormalState() |
void |
initTimerStates() |
boolean |
isAddEnabled(java.lang.String taskID,
YIdentifier childID) |
boolean |
isAlive() |
boolean |
isCompleted() |
boolean |
isEmpty() |
boolean |
isInSuspense() |
boolean |
isResuming() |
boolean |
isSuspended() |
boolean |
isSuspending() |
boolean |
isTimeServiceTask(YWorkItem item)
returns true if the specified workitem is registered with the Time Service
|
void |
kick(YPersistenceManager pmgr)
Assumption: this will only get called AFTER a workitem has been progressed?
Because if it is called any other time then it will cause the case to stop.
|
protected void |
processEmptyTask(YAtomicTask task,
YPersistenceManager pmgr) |
java.util.Set<YAnnouncement> |
refreshAnnouncements() |
void |
removeActiveTask(YPersistenceManager pmgr,
YTask task) |
void |
removeFromPersistence(YPersistenceManager pmgr) |
void |
restoreObservers()
restores the IB and IX observers on session startup (via persistence)
|
void |
restoreTimerStates() |
boolean |
rollbackWorkItem(YPersistenceManager pmgr,
YIdentifier caseID,
java.lang.String taskID) |
void |
set_caseID(java.lang.String ID) |
void |
set_caseIDForNet(YIdentifier id) |
protected void |
set_caseObserverStr(java.lang.String obStr) |
void |
set_timerStates(java.util.Map<java.lang.String,java.lang.String> states) |
protected void |
setBusyTaskNames(java.util.Set<java.lang.String> names) |
void |
setContainingTask(YCompositeTask task) |
void |
setContainingTaskID(java.lang.String taskid) |
protected void |
setEnabledTaskNames(java.util.Set<java.lang.String> names) |
void |
setEngine(YEngine engine) |
void |
setExecutionStatus(java.lang.String status) |
void |
setNet(YNet net) |
void |
setNetData(YNetData data) |
void |
setObserver(YAWLServiceReference observer) |
void |
setSpecificationID(YSpecificationID id) |
void |
setStartTime(long time) |
void |
setStateNormal() |
void |
setStateResuming() |
void |
setStateSuspended() |
void |
setStateSuspending() |
void |
start(YPersistenceManager pmgr) |
void |
startWorkItemInTask(YPersistenceManager pmgr,
YIdentifier caseID,
java.lang.String taskID) |
void |
startWorkItemInTask(YPersistenceManager pmgr,
YWorkItem workItem) |
java.lang.String |
toString() |
void |
updateTimerState(YTask task,
YWorkItemTimer.State state) |
protected YNet _net
protected YNetRunner()
public YNetRunner(YPersistenceManager pmgr, YNet netPrototype, Element paramsData, java.lang.String caseID) throws YStateException, YDataStateException, YPersistenceException
public YNetRunner(YPersistenceManager pmgr, YNet netPrototype, YCompositeTask container, YIdentifier caseIDForNet, Element incomingData) throws YDataStateException, YPersistenceException
pmgr
- netPrototype
- container
- caseIDForNet
- incomingData
- YDataStateException
YPersistenceException
public java.util.Set<YAnnouncement> refreshAnnouncements()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setContainingTask(YCompositeTask task)
public java.lang.String getContainingTaskID()
public void setContainingTaskID(java.lang.String taskid)
public void setNet(YNet net)
public YNet getNet()
public void setEngine(YEngine engine)
public YSpecificationID getSpecificationID()
public void setSpecificationID(YSpecificationID id)
public YNetData getNetData()
public void setNetData(YNetData data)
public YIdentifier get_caseIDForNet()
public void set_caseIDForNet(YIdentifier id)
public void addBusyTask(YTask ext)
public void addEnabledTask(YTask ext)
public void removeActiveTask(YPersistenceManager pmgr, YTask task) throws YPersistenceException
YPersistenceException
public java.lang.String get_caseID()
public void set_caseID(java.lang.String ID)
public java.util.Set<java.lang.String> getEnabledTaskNames()
public java.util.Set<java.lang.String> getBusyTaskNames()
protected void setEnabledTaskNames(java.util.Set<java.lang.String> names)
protected void setBusyTaskNames(java.util.Set<java.lang.String> names)
public long getStartTime()
public void setStartTime(long time)
public void start(YPersistenceManager pmgr) throws YPersistenceException, YDataStateException, YQueryException, YStateException
public boolean isAlive()
public void kick(YPersistenceManager pmgr) throws YPersistenceException, YDataStateException, YQueryException, YStateException
pmgr
- YPersistenceException
YDataStateException
YQueryException
YStateException
public java.util.List<YIdentifier> attemptToFireAtomicTask(YPersistenceManager pmgr, java.lang.String taskID) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public YIdentifier addNewInstance(YPersistenceManager pmgr, java.lang.String taskID, YIdentifier aSiblingInstance, Element newInstanceData) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public void startWorkItemInTask(YPersistenceManager pmgr, YWorkItem workItem) throws YDataStateException, YPersistenceException, YQueryException, YStateException
public void startWorkItemInTask(YPersistenceManager pmgr, YIdentifier caseID, java.lang.String taskID) throws YDataStateException, YPersistenceException, YQueryException, YStateException
public boolean completeWorkItemInTask(YPersistenceManager pmgr, YWorkItem workItem, Document outputData) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public boolean completeWorkItemInTask(YPersistenceManager pmgr, YWorkItem workItem, YIdentifier caseID, java.lang.String taskID, Document outputData) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public boolean continueIfPossible(YPersistenceManager pmgr) throws YDataStateException, YStateException, YQueryException, YPersistenceException
protected void processEmptyTask(YAtomicTask task, YPersistenceManager pmgr) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public void cancel(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void removeFromPersistence(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public boolean rollbackWorkItem(YPersistenceManager pmgr, YIdentifier caseID, java.lang.String taskID) throws YPersistenceException
YPersistenceException
public YExternalNetElement getNetElement(java.lang.String id)
public YIdentifier getCaseID()
public boolean isCompleted()
public boolean endOfNetReached()
public boolean isEmpty()
protected java.util.Set<YTask> getBusyTasks()
protected java.util.Set<YTask> getEnabledTasks()
protected java.util.Set<YTask> getActiveTasks()
protected boolean hasActiveTasks()
public boolean isAddEnabled(java.lang.String taskID, YIdentifier childID)
public void setObserver(YAWLServiceReference observer)
public java.lang.String toString()
toString
in class java.lang.Object
public void dump()
public void restoreObservers()
protected java.lang.String get_caseObserverStr()
protected void set_caseObserverStr(java.lang.String obStr)
public void cancelTask(YPersistenceManager pmgr, java.lang.String taskID)
public boolean isTimeServiceTask(YWorkItem item)
public java.util.List<java.lang.String> getTimeOutTaskSet(YWorkItem item)
public void initTimerStates()
public void restoreTimerStates()
public void updateTimerState(YTask task, YWorkItemTimer.State state)
public java.util.Map<java.lang.String,java.lang.String> get_timerStates()
public void set_timerStates(java.util.Map<java.lang.String,java.lang.String> states)
public boolean evaluateTimerPredicate(java.lang.String predicate) throws YQueryException
YQueryException
public boolean isSuspending()
public boolean isSuspended()
public boolean isResuming()
public boolean isInSuspense()
public boolean hasNormalState()
public void setStateSuspending()
public void setStateSuspended()
public void setStateResuming()
public void setStateNormal()
public void setExecutionStatus(java.lang.String status)
public java.lang.String getExecutionStatus()
Copyright © 2004-2014 The YAWL Foundation.