Method Summary |
|
public void | abandon(String exception) |
public void | abandon(ExceptionResult result) |
public void | abort() |
public void | abortRequester() |
abstract public ActivityFinder | activityFinder() Returns an
de.danet.an.workflow.spis.ras.ActivityFinderActivityFinder that identifies this activity
against a resource assignment service as defined by
de.danet.an.workflow.spis.ras the ras package . |
public Info | activityInfo() This method returns all available information about the
activity in a single operation. |
public Collection | assignments() Return the list of assignments. |
protected WfAuditEvent | auditEventBase(String eventType) Returns a WfAuditEvent containing information about the
activity and its container, only. |
protected void | autoAssignResources() Called when the activity enters the running state. |
public String | blockActivity() Returns the key of the "parent" block activity. |
public void | changeAssignment(WfResource oldResource, WfResource newResource) Change an assignment for enacting the activity. |
public void | changeState(State newState) Adds the possibility to change the state to
ClosedState.COMPLETED
(i.e. |
public boolean | choose() Makes this activity the chosen one in a set of activities
started by an AND split with the "deferred choice" option
set. |
public void | complete() Close this activity regularly. |
abstract protected WfAuditEvent | containerAuditEventBase() Returns an WfAuditEvent containing container-related
information. |
abstract public WfProcessLocal | containerLocal() Returns the WfProcessLocal that this activity is a part of. |
public DeadlineInfo[] | deadlines() Returns the deadlines defined for this activity. |
public boolean | deferChoiceOnSplit() Returns if the activity's split is to be executed as deferred
choice. |
protected void | dispose() Releases all allocated resources. |
public void | doCloseActivity(State closedState) |
public boolean | equals(Object obj) Indicates if some other object is equal to this one. |
public Implementation | executor() Returns the current executor. |
protected StartFinishMode | finishMode() Returns the finish mode. |
abstract protected Implementation[] | getPaActImpl() The getter method for the persistent attribute actImpl . |
abstract protected Long | getPaBlockActivity() The getter method for the persistent attribute
blockActivity . |
abstract protected List | getPaDeadlines() The getter method for the persistent attribute deadlines . |
abstract protected boolean | getPaDeferChoiceOnSplit() The getter method for the persistent attribute
deferChoiceOnSplit . |
abstract protected Integer | getPaExecStat() The getter method for the persistent attribute executor . |
abstract protected StartFinishMode | getPaFinishMode() The getter method for the persistent attribute finishMode . |
abstract protected JoinAndSplitMode | getPaJoinMode() The getter method for the persistent attribute joinMode . |
abstract protected boolean | getPaNoAssignments() The getter method for the persistent attribute
noAssignments . |
abstract protected String | getPaPendingException() The getter method for the persistent attribute
pendingException . |
abstract protected boolean | getPaPendingExceptionIsFromBlock() The getter method for the persistent flag
pendingExceptionIsFromBlock . |
abstract protected String | getPaPerformer() The getter method for the persistent attribute performer . |
abstract protected boolean | getPaPreliminarilyChosen() The getter method for the persistent attribute
electedInChoice . |
protected String | getPaProcessKey() The getter method implementation for the persistent
read-only attribute processKey . |
protected String | getPaProcessMgrName() The getter method implementation for the persistent
read-only attribute processMgrName . |
protected String | getPaProcessMgrVersion() The getter method implementation for the persistent
read-only attribute processMgrVersion . |
protected String | getPaProcessName() The getter method implementation for the persistent
read-only attribute processName . |
abstract protected JoinAndSplitMode | getPaSplitMode() The getter method for the persistent attribute splitMode . |
abstract protected StartFinishMode | getPaStartMode() The getter method for the persistent attribute startMode . |
abstract protected Date | getPaStartTime() The getter method for the persistent attribute startTime . |
abstract protected int | getPaSubStateBackup() The getter method for the persistent attribute
subStateBackup . |
abstract protected String | getPaSubflow() The getter method for the persistent attribute Subflow . |
abstract protected long | getPaSuspendAccum() The getter method for the persistent attribute suspendAccum . |
abstract protected Date | getPaSuspendStart() The getter method for the persistent attribute suspendStart . |
abstract protected ThreadInfo | getPaThreadInfo() The getter method for the persistent attribute threadInfo . |
abstract protected String | getPaWaitOnChan() The getter method for the persistent attribute
waitOnChan . |
abstract protected Long | getPaWaitOnProc() The getter method for the persistent attribute
waitOnProc . |
public WfResource | getResource(WfAssignment asnmnt) Get the resource associated with an Assignment. |
protected Map | getStateTransitionMap() Returns the
java.util.Map Map that maps
the activity states to a
java.util.MapList of reachable process states. |
protected void | handleAbortedEvent(WfStateAuditEvent event) Handles a aborting audit event. |
protected void | handleCompletedEvent(WfStateAuditEvent event) Handles a completed audit event. |
protected void | handleImplCompletedEvent(ImplCompleteAuditEvent event) Handles a tool completed audit event. |
protected void | handleResumedEvent(WfStateAuditEvent event) Handles a resumed audit event. |
protected void | handleSuspendedEvent(WfStateAuditEvent event) Handles a suspended audit event. |
protected void | handleTerminatedEvent(WfStateAuditEvent event) Handles a terminated audit event. |
public void | handleTimeout(Serializable info) Handle the timeout of a timer. |
protected void | handleToolInvocationFailedAuditEvent(ToolInvocationFailedAuditEvent event) Handles a tool invocation audit event. |
public String[] | handledExceptions() |
public Implementation[] | implementation() Returns the implementation of the activity as
de.danet.an.workflow.localapi.ActivityLocal.ImplementationImplementation s. |
protected void | init(Long blockActId, Priority priority, String name, String description, StartFinishMode startMode, StartFinishMode finishMode, JoinAndSplitMode joinMode, JoinAndSplitMode splitMode, Implementation[] implementation, String performer, List deadlines, boolean deferChoiceOnSplit, int auditEventSelection, boolean storeAuditEvents) Initializes the class, i.e. |
public boolean | initiateAbandoning(boolean blockException, String exceptionName) |
public void | invokeTool(ExtApplication appl, Map params) Invoke a tool for this activity. |
public static boolean | isHandled(WfAuditEvent event) Check if this class handles a specific event. |
public boolean | isMemberOfAssignments(WfAssignment member) Check if the given assignment is among the assignments of this
activity.
Parameters: member - the assignment in question. |
public JoinAndSplitMode | joinMode() Returns the join mode. |
abstract protected ExtProcessLocal | lookupProcessLocal(String key) Lookup a process by its key. |
public String | performer() Returns the performer as string. |
public Collection | performers() Return all performers associated with this requester. |
public Collection | performersLocal() Return all performers associated with this requester. |
public boolean | preliminarilyChosen() Returns if the activity has been preliminarily chosen in a
deferred choice. |
public ProcessData | processContext() Return the context of this WfExecutionObject . |
protected RASInvocationHandler | rasInvocationHandler() Return a RASInvocationHandler . |
public void | receiveEvent(WfAuditEvent e) Called by the workflow engine if the activity is a requester. |
protected void | refresh() Called after change of persistent attributes. |
protected void | releaseResources() Called when the activity is closed. |
public void | removeAssignment(WfResource resource) Removes an assignment for enacting the activity. |
public void | reset(boolean preserveThreadInfo, boolean publishChange) Reset an activity to NotStartedState.UNKNOWN ,
i.e. |
public ProcessData | result() The default implementation of result throws a
ResultNotAvailableException as this implementation does
not provide access to the results of an activity. |
public void | resume() |
public void | setJoinMode(JoinAndSplitMode joinMode) Set the join mode of the activity. |
abstract protected void | setPaActImpl(Implementation[] newActImpl) The setter method for the persistent attribute actImpl . |
abstract protected void | setPaBlockActivity(Long newBlockActivity) The setter method for the persistent attribute
blockActivity . |
abstract protected void | setPaDeadlines(List newDeadlines) The setter method for the persistent attribute deadlines . |
abstract protected void | setPaDeferChoiceOnSplit(boolean newDeferChoiceOnSplit) The setter method for the persistent attribute
deferChoiceOnSplit . |
abstract protected void | setPaExecStat(Integer newExecutor) The setter method for the persistent attribute executor . |
abstract protected void | setPaFinishMode(StartFinishMode newFinishMode) The setter method for the persistent attribute finishMode . |
abstract protected void | setPaJoinMode(JoinAndSplitMode newJoinMode) The setter method for the persistent attribute joinMode . |
abstract protected void | setPaNoAssignments(boolean newNoAssignments) The setter method for the persistent attribute
noAssignments . |
abstract protected void | setPaPendingException(String newPendingException) The setter method for the persistent attribute
pendingException . |
abstract protected void | setPaPendingExceptionIsFromBlock(boolean newValue) The setter method for the persistent flags
pendingExceptionIsFromBlock . |
abstract protected void | setPaPerformer(String newPerformer) The setter method for the persistent attribute performer . |
abstract protected void | setPaPreliminarilyChosen(boolean newElectedInChoice) The setter method for the persistent attribute
electedInChoice . |
abstract protected void | setPaSplitMode(JoinAndSplitMode newSplitMode) The setter method for the persistent attribute splitMode . |
abstract protected void | setPaStartMode(StartFinishMode newStartMode) The setter method for the persistent attribute startMode . |
abstract protected void | setPaStartTime(Date newStartTime) The setter method for the persistent attribute startTime . |
abstract protected void | setPaSubStateBackup(int newSubStateBackup) The setter method for the persistent attribute
subStateBackup . |
abstract protected void | setPaSubflow(String newSubflow) The setter method for the persistent attribute Subflow . |
abstract protected void | setPaSuspendAccum(long newSuspendAccum) The setter method for the persistent attribute suspendAccum . |
abstract protected void | setPaSuspendStart(Date newSuspendStart) The setter method for the persistent attribute suspendStart . |
abstract protected void | setPaThreadInfo(ThreadInfo newThreadInfo) The setter method for the persistent attribute threadInfo . |
abstract protected void | setPaWaitOnChan(String newWaitOnChan) The setter method for the persistent attribute
waitOnChan . |
abstract protected void | setPaWaitOnProc(Long newWaitOnProc) The setter method for the persistent attribute
waitOnProc . |
public void | setProcessContext(ProcessData newValue) Set new process context. |
public void | setResult(ProcessData result) The default implementation of setResult maps the
formal parameter names to actual process data item names and
merges the result data in the process context. |
public void | setSplitMode(JoinAndSplitMode splitMode) Set the join mode of the activity. |
public void | setStartable(Collection triggers, boolean preliminarilyChosen) Update the sub-state of an activity in state
NotRunningState.NOT_STARTED to
NotStartedState.STARTABLE . |
public JoinAndSplitMode | splitMode() Returns the split mode. |
public void | start() Starts an activity. |
protected StartFinishMode | startMode() Returns the start mode. |
public Date | startTime() Return the start time of the activity. |
public void | suspend() |
public void | terminate() |
protected void | terminateImpl() Terminate any implementation currently running for this
activity. |
protected void | terminateTool() Terminate a tool currently running for this activity. |
public ThreadInfo | threadInfo() Return the activity's thread info. |
abstract public Activity | toActivity() Return the remote version of this object. |
abstract protected ExtActivityLocal | toActivityLocal() Return the version of this object to be passed to as local reference. |
public String | toString() Return string representation for debugging purposes. |
protected ToolInvocationHandler | toolInvocationHandler() Return a ToolInvocationHandler . |
public ActivityUniqueKey | uniqueKey() Return a unique key for the activity. |
public void | waitOnChannel(String procKey, String channel) |
public void | withdrawPreliminaryChoice(boolean reset) Terminates and resets an activity that was started
preliminarily as part of a deferred choice. |