Package net.pricefx.workflowengine
Interface WorkflowStep
-
- All Superinterfaces:
Statefull
public interface WorkflowStep extends Statefull
Can be executed, undone, redone only once.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WorkflowStep.WorkflowStepExecutionAction
static class
WorkflowStep.WorkflowStepExecutionStatus
As it sees user.static class
WorkflowStep.WorkflowStepType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
execute(WorkflowStep.WorkflowStepExecutionAction action, String comment, String selectedApprover, String submitterTypedId)
Executes step.boolean
getCanAddStepsFromPostStepLogic()
String
getId()
List<String>
getPendingUsers()
String
getPostLogicName()
WorkflowStep.WorkflowStepType
getType()
String
getUniqueName()
List<String>
getUsers()
WorkflowInfo.WorkflowStepInfo
getWorkflowStepInfo()
boolean
isPassThroughStep()
Step that is executed immediately without user intervention(Approval, denial...)void
preExecute(String submitterTypedId)
Any action that should be executed before actual denial, approval of step like sending email.void
setPostStepLogicFailed(boolean failed)
boolean
writeNamesToWorkflowDefinition()
-
-
-
Field Detail
-
ID
static final String ID
- See Also:
- Constant Field Values
-
TYPE
static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
preExecute
void preExecute(String submitterTypedId)
Any action that should be executed before actual denial, approval of step like sending email.
-
execute
boolean execute(WorkflowStep.WorkflowStepExecutionAction action, String comment, String selectedApprover, String submitterTypedId)
Executes step.WorkflowExecutionEngineException
thrown in case action was not possible to make.- Parameters:
action
-- Returns:
- true the step is done, false otherwise (multiple approvals pending e.g.)
-
getId
String getId()
-
getType
WorkflowStep.WorkflowStepType getType()
-
getPostLogicName
String getPostLogicName()
-
setPostStepLogicFailed
void setPostStepLogicFailed(boolean failed)
-
getCanAddStepsFromPostStepLogic
boolean getCanAddStepsFromPostStepLogic()
-
isPassThroughStep
boolean isPassThroughStep()
Step that is executed immediately without user intervention(Approval, denial...)- Returns:
-
getWorkflowStepInfo
WorkflowInfo.WorkflowStepInfo getWorkflowStepInfo()
-
getUniqueName
String getUniqueName()
-
writeNamesToWorkflowDefinition
boolean writeNamesToWorkflowDefinition()
-
-