|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.obe.util.WorkflowUtilities
Utility class for searching activity/workflow/package for settings and definitions.
| Method Summary | |
static Activity |
findActivity(WorkflowProcess workflow,
java.lang.String activityId)
Finds an activity within a workflow process definition. |
static int |
findActivityPriority(Activity activity)
Finds the priority to assign to an activity. |
static ParameterMode |
findParameterMode(Application app,
java.lang.String paramName)
Gets the ParameterMode for the named parameter in the given application. |
static Participant |
findParticipant(WorkflowProcess wp,
java.lang.String participantId)
Finds the Participant with the specified ID in the given workflow or package. |
static Participant[] |
findParticipants(WorkflowProcess wp,
java.lang.String particips)
Find the Participants with the specified IDs in the given workflow or package. |
static Application |
findToolDefinition(WorkflowProcess wp,
java.lang.String toolId)
Finds the definition of the specified tool in a workflow or package. |
static TypeDeclaration |
findTypeDeclaration(XPDLPackage pkg,
java.lang.String declaredTypeId)
Finds a type declaration within a package. |
static int |
findWorkflowPriority(WorkflowProcess workflow)
Finds the workflow priority from the workflow or its package. |
static WorkflowProcess |
findWorkflowProcess(XPDLPackage pkg,
java.lang.String processDefinitionId)
Finds a workflow definition within a package. |
static java.lang.String[] |
getResponsibles(WorkflowProcess workflow)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Activity findActivity(WorkflowProcess workflow,
java.lang.String activityId)
throws WMInvalidActivityNameException
workflow - The workflow process definition to search.activityId - The activity ID.
WMInvalidActivityNameException - if the activity was not found.public static int findActivityPriority(Activity activity)
activity - The activity definition.
public static ParameterMode findParameterMode(Application app,
java.lang.String paramName)
throws FormalParameterNotFoundException
app - The ApplicationparamName - The parameter name
FormalParameterNotFoundException - If the named parameter could
be found.
public static Participant findParticipant(WorkflowProcess wp,
java.lang.String participantId)
throws WMInvalidTargetUserException
wp - The workflow process definition.participantId - The participant ID. This can be a comma-separated
list if there are two or more participants.
WMInvalidTargetUserException - if any of the participants could
not be located.
public static Participant[] findParticipants(WorkflowProcess wp,
java.lang.String particips)
throws WMInvalidTargetUserException
wp - The workflow process definition.particips - The participant ID(s). This can be a comma-separated
list if there are two or more participants.
WMInvalidTargetUserException - if any of the participants could
not be located.
public static Application findToolDefinition(WorkflowProcess wp,
java.lang.String toolId)
throws WMInvalidToolException
wp - The WorkflowProcess to search.toolId - The ID of the tool for which the definition is required.
WMInvalidToolException - if the tool definition could not be
located.
public static TypeDeclaration findTypeDeclaration(XPDLPackage pkg,
java.lang.String declaredTypeId)
throws WMInvalidProcessDefinitionException
pkg - The package to search.declaredTypeId - The ID of the declared type.
WMInvalidProcessDefinitionException - if the type declaration could
not be found.public static int findWorkflowPriority(WorkflowProcess workflow)
workflow - The workflow definition to search.
public static WorkflowProcess findWorkflowProcess(XPDLPackage pkg,
java.lang.String processDefinitionId)
throws WMInvalidProcessDefinitionException
pkg - The package to search.processDefinitionId - The ID of the process definition required.
WMInvalidProcessDefinitionException - if the process definition
could not be found in the package.public static java.lang.String[] getResponsibles(WorkflowProcess workflow)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||