wt.clients.workflow.engine
Class DeleteWfProcesses

java.lang.Object
  extended bywt.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:

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:

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.


Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
DeleteWfProcesses()
           
 
Method Summary
static int delete(WfState state)
           
static QueryResult getProcesses(WfState state)
           
static void main(String[] args)
           
private static void sendFeedback(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

DeleteWfProcesses

public DeleteWfProcesses()
Method Detail

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