E
- data object the worfklow is aboutF
- transition choice used for the lifecycle of the objectG
- the type of the object being used for criteria for the switchpublic class ObjectElementSwitchComplexWorkflowStep<E extends DataObject<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>,G> extends SwitchComplexWorkflowStep<E,F>
Constructor and Description |
---|
ObjectElementSwitchComplexWorkflowStep(DataObjectExtractor<E,G> elementextractor)
creates a complex switch
|
Modifier and Type | Method and Description |
---|---|
void |
addSpecificStep(G element,
ComplexWorkflowStep<E,F> specificnextstep)
adds a specific mapping for a criteria
|
ComplexWorkflowStep<E,F> |
getstepselection(DataObjectId<Workflow> workflowid,
E object)
gets the step to select next depending on context.
|
void |
setDefaultNextStep(ComplexWorkflowStep<E,F> defaultstep)
sets the default next step
|
execute
public ObjectElementSwitchComplexWorkflowStep(DataObjectExtractor<E,G> elementextractor)
elementextractor
- function to extract the criteria object from the
parent data objectpublic void setDefaultNextStep(ComplexWorkflowStep<E,F> defaultstep)
defaultstep
- default next steppublic void addSpecificStep(G element, ComplexWorkflowStep<E,F> specificnextstep)
element
- value of the criteria objectspecificnextstep
- next step to triggerpublic ComplexWorkflowStep<E,F> getstepselection(DataObjectId<Workflow> workflowid, E object)
SwitchComplexWorkflowStep
getstepselection
in class SwitchComplexWorkflowStep<E extends DataObject<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>>
workflowid
- id of the workflowobject
- data object