E
- parent data objectF
- transition choice of the lifecycle of the objectpublic class ChangeStateWorkflowStep<E extends DataObject<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>> extends ComplexWorkflowStep<E,F>
Constructor and Description |
---|
ChangeStateWorkflowStep(ChoiceValue<F> nextstate)
creates the change state workflow
|
Modifier and Type | Method and Description |
---|---|
void |
execute(DataObjectId<Workflow> workflowid,
E object,
ComplexWorkflowHelper<E,F> workflowhelper)
executes the workflow step
|
void |
setNextStep(ComplexWorkflowStep<E,F> nextstep)
defines the next step in the workflow after the change state
|
public ChangeStateWorkflowStep(ChoiceValue<F> nextstate)
nextstate
- the state to change the object topublic void setNextStep(ComplexWorkflowStep<E,F> nextstep)
nextstep
- next step to execute afterpublic void execute(DataObjectId<Workflow> workflowid, E object, ComplexWorkflowHelper<E,F> workflowhelper)
ComplexWorkflowStep
execute
in class ComplexWorkflowStep<E extends DataObject<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>>
workflowid
- id of the workflowobject
- object that is the subject of the workflowworkflowhelper
- the workflow helper task