Class ApplicationApiRequestWorkflowCondition
java.lang.Object
de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
de.uplanet.lucy.server.workflow.condition.ApplicationApiRequestWorkflowCondition
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowCondition
,IWorkflowObject
,Serializable
This condition can be used to distinguish processing contexts that are
associated with an Application API request from other processing contexts.
It can have on, or two, or three efferent transitions, one of which is taken in case of an Application API request, while the other is taken when there is no such request. The third transition, if defined, is always taken.
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the name of the transition that is always taken.Get the name of the transition that is taken when the current processing context is not associated with an Application API request.Get the name of the transition that is taken when the current processing context is associated with an Application API request.process
(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.void
setTransitionAlways
(String p_strTransitionAlways) Set the name of the transition that is always taken.void
setTransitionFalse
(String p_strTransitionFalse) Set the name of the transition that is taken when the current processing context is not associated with an Application API request.void
setTransitionTrue
(String p_strTransitionTrue) Set the name of the transition that is taken when the current processing context is associated with an Application API request.Methods inherited from class de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
getAfferentTransition, getEfferentTransitions, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransitions, setName, setWorkflow, toString
-
Constructor Details
-
ApplicationApiRequestWorkflowCondition
-
-
Method Details
-
getTransitionTrue
Get the name of the transition that is taken when the current processing context is associated with an Application API request.The default value is
"true"
.- Returns:
- The name of the transition.
-
setTransitionTrue
Set the name of the transition that is taken when the current processing context is associated with an Application API request.The default value is
"true"
.- Parameters:
p_strTransitionTrue
- The name of the transition.
-
getTransitionFalse
Get the name of the transition that is taken when the current processing context is not associated with an Application API request.The default value is
"false"
.- Returns:
- The name of the transition.
-
setTransitionFalse
Set the name of the transition that is taken when the current processing context is not associated with an Application API request.The default value is
"false"
.- Parameters:
p_strTransitionFalse
- The name of the transition.
-
getTransitionAlways
Get the name of the transition that is always taken.The default value is
"always"
.- Returns:
- The name of the transition.
-
setTransitionAlways
Set the name of the transition that is always taken.The default value is
"always"
.- Parameters:
p_strTransitionAlways
- The name of the transition.
-
process
public WorkflowTransition[] process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Description copied from interface:IWorkflowCondition
Process a workflow event in the given context.The workflow engine will follow the resulting transitions in the order they were returned in the array.
Normally, a workflow condition should return
null
or an empty array if it is notactive
.- Parameters:
p_evt
- The event to be processed.p_wfCtx
- The workflow processing context.p_ctx
- The processing context.- Returns:
- The efferent transitions, or an empty array, or
null
. - Throws:
InterruptedException
- If processing of this condition has been interrupted.Exception
- If an error occurred.
-