wt.clients.workflow.engine
Class DeleteWfProcesses
java.lang.Object
wt.clients.workflow.engine.DeleteWfProcesses
- All Implemented Interfaces:
- RemoteAccess
- public class DeleteWfProcesses
- extends Object
- implements RemoteAccess
This program deletes running workflow processes. It is possible to specify the state
of the processes to be deleted. The states that can be specified are the following:
- OPEN
- OPEN_RUNNING
- OPEN_NOT_RUNNING
- OPEN_NOT_RUNNING_NOT_STARTED
- OPEN_NOT_RUNNING_SUSPENDED
- OPEN_NOT_RUNNING_SUSPENDED_DISABLED
- OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED
- CLOSED
- CLOSED_ABORTED
- CLOSED_TERMINATED
- CLOSED_COMPLETED
- CLOSED_COMPLETED_EXECUTED
- CLOSED_COMPLETED_NOT_EXECUTED
Some of the states of the list above are really "super-states" comprising several "sub-states."
The actual states a process can be in are the following:
- OPEN_RUNNING
- OPEN_NOT_RUNNING_NOT_STARTED
- OPEN_NOT_RUNNING_SUSPENDED_DISABLED
- OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED
- CLOSED_ABORTED
- CLOSED_TERMINATED
- CLOSED_COMPLETED_EXECUTED
- CLOSED_COMPLETED_NOT_EXECUTED
Specifying a super-state is equivalent to specifying all states it contains. The rule to
derive the contained sub-states is the following. A state contains all states to which it
is a prefix. So "CLOSED_COMPLETED" contains "CLOSED_COMPLETED_EXECUTED" and
"CLOSED_COMPLETED_NOT_EXECUTED." Specifying CLOSED_COMPLETED as the argument will
cause the program to delete all processes that are in the CLOSED_COMPLETED_EXECUTED and
CLOSED_COMPLETED_NOT_EXECUTED states, but not the others.
If no argument is specified, all processes are removed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FC_RESOURCE
private static final String FC_RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
DeleteWfProcesses
public DeleteWfProcesses()
main
public static void main(String[] args)
delete
public static int delete(WfState state)
throws WTException
- Throws:
WTException
getProcesses
public static QueryResult getProcesses(WfState state)
throws WTException
- Throws:
WTException
sendFeedback
private static void sendFeedback(String msg)
throws WTException
- Throws:
WTException