wt.clients.workflow.manager
Class PMServer

java.lang.Object
  extended bywt.clients.workflow.manager.PMServer
All Implemented Interfaces:
RemoteAccess

public class PMServer
extends Object
implements RemoteAccess


Field Summary
private static Color CLOSED_ABORTED_COLOR
           
private static Color CLOSED_COMPLETED_EXECUTED_COLOR
           
private static Color CLOSED_COMPLETED_NOT_EXECUTED_COLOR
           
private static Color CLOSED_TERMINATED_COLOR
           
private static Color CONNECTOR_DISABLED_COLOR
           
private static Color CONNECTOR_ENABLED_COLOR
           
private static Color OPEN_NOT_RUNNING_NOT_STARTED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR
           
private static Color OPEN_RUNNING_COLOR
           
private static String RESOURCE
           
static String SERVER_CLASS
           
private static boolean VERBOSE
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
PMServer()
           
 
Method Summary
private static String buildKey(Persistable pPersistable)
          Build the key which is going to be used for discriminating nodes in the model.
Default implementation : Use the string representation of the object identifier as the Key
static void changeState(String oid_str, String transition)
          Change the state of the WfExecutionObject (activity, process, etc).
static void completeActivity(String oid_str, Vector events)
          Complete activity with routing events.
static MonitorModel getMonitorModel(String processOID)
          Builds and returns a MonitorModel.
static ObjectIdentifier getOidByString(String oid_str)
           
static WfTransition getWfTransition(String transition)
           
static boolean isUserMemberOfGroup(String groupName)
          Checks if the current user is a member of the specified group.
private static void loadInstance(MonitorModel pMonitorModel, WfContainer wContainer, Vector proxies)
           
private static Vector loadTemplate(MonitorModel pMonitorModel, WfContainerTemplate processTemplate)
           
private static void setupConnector(WfConnector connector, MonitorNode pNode)
           
private static void setupConnectorTemplate(WfConnectorTemplate connectorTemplate, MonitorNode pNode)
           
private static void setupInstance(WfExecutionObject executionObject, MonitorNode pNode)
           
private static void setupLink(NodeTemplateLink pNodeTemplateLink, MonitorLink pLink)
           
private static void setupTemplate(WfTemplateObject templateObject, MonitorNode pNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_CLASS

public static final String SERVER_CLASS
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

OPEN_RUNNING_COLOR

private static final Color OPEN_RUNNING_COLOR

OPEN_NOT_RUNNING_NOT_STARTED_COLOR

private static final Color OPEN_NOT_RUNNING_NOT_STARTED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_COLOR

CLOSED_TERMINATED_COLOR

private static final Color CLOSED_TERMINATED_COLOR

CLOSED_ABORTED_COLOR

private static final Color CLOSED_ABORTED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR

CLOSED_COMPLETED_NOT_EXECUTED_COLOR

private static final Color CLOSED_COMPLETED_NOT_EXECUTED_COLOR

CLOSED_COMPLETED_EXECUTED_COLOR

private static final Color CLOSED_COMPLETED_EXECUTED_COLOR

CONNECTOR_ENABLED_COLOR

private static final Color CONNECTOR_ENABLED_COLOR

CONNECTOR_DISABLED_COLOR

private static final Color CONNECTOR_DISABLED_COLOR
Constructor Detail

PMServer

public PMServer()
Method Detail

getOidByString

public static ObjectIdentifier getOidByString(String oid_str)
                                       throws WTException
Throws:
WTException

getWfTransition

public static WfTransition getWfTransition(String transition)

changeState

public static void changeState(String oid_str,
                               String transition)
                        throws WTException
Change the state of the WfExecutionObject (activity, process, etc).

Throws:
WTException

completeActivity

public static void completeActivity(String oid_str,
                                    Vector events)
                             throws WTException
Complete activity with routing events.

Throws:
WTException

getMonitorModel

public static MonitorModel getMonitorModel(String processOID)
                                    throws WTException
Builds and returns a MonitorModel.

Throws:
WTException

loadTemplate

private static Vector loadTemplate(MonitorModel pMonitorModel,
                                   WfContainerTemplate processTemplate)
Parameters:
pMonitorModel -

loadInstance

private static void loadInstance(MonitorModel pMonitorModel,
                                 WfContainer wContainer,
                                 Vector proxies)
Parameters:
pMonitorModel -

setupLink

private static void setupLink(NodeTemplateLink pNodeTemplateLink,
                              MonitorLink pLink)
Parameters:
pNodeTemplateLink -
pLink -

setupConnectorTemplate

private static void setupConnectorTemplate(WfConnectorTemplate connectorTemplate,
                                           MonitorNode pNode)
                                    throws WTPropertyVetoException
Parameters:
connectorTemplate -
pNode -
Throws:
WTPropertyVetoException

setupConnector

private static void setupConnector(WfConnector connector,
                                   MonitorNode pNode)
                            throws WTPropertyVetoException
Parameters:
connector -
pNode -
Throws:
WTPropertyVetoException

setupTemplate

private static void setupTemplate(WfTemplateObject templateObject,
                                  MonitorNode pNode)
                           throws WTPropertyVetoException
Parameters:
templateObject -
pNode -
Throws:
WTPropertyVetoException

buildKey

private static String buildKey(Persistable pPersistable)
Build the key which is going to be used for discriminating nodes in the model.
Default implementation : Use the string representation of the object identifier as the Key

Parameters:
pPersistable -
Returns:
String

setupInstance

private static void setupInstance(WfExecutionObject executionObject,
                                  MonitorNode pNode)
                           throws WTPropertyVetoException,
                                  WTException
Parameters:
executionObject -
pNode -
Throws:
WTPropertyVetoException
WTException

isUserMemberOfGroup

public static boolean isUserMemberOfGroup(String groupName)
                                   throws WTException
Checks if the current user is a member of the specified group.

Throws:
WTException