public class SwitchConditionChoiceField extends SwitchCondition
Constructor and Description |
---|
SwitchConditionChoiceField(DataObjectDefinition object,
ChoiceField field,
WorkflowStep defaultnextstep)
creates a switch condition for choice field
|
Modifier and Type | Method and Description |
---|---|
void |
addSpecificNextStep(ChoiceValue value,
WorkflowStep specificnextstep)
adds a specific mapping
|
WorkflowStep |
getDefaultnextstep() |
ChoiceField |
getField() |
DataObjectDefinition |
getObject() |
void |
writedeclaration(SourceGenerator sg,
Module module,
java.lang.String parentclass,
java.lang.String lifecycleclass,
java.lang.String taskvariable) |
void |
writeimport(SourceGenerator sg,
Module module)
write the imports for the switch condition
|
void |
writeNextSteps(SourceGenerator sg,
Module module,
java.lang.String switchtaskcode) |
public SwitchConditionChoiceField(DataObjectDefinition object, ChoiceField field, WorkflowStep defaultnextstep)
object
- data objectfield
- fielddefaultnextstep
- default next step of choice field values that do not
have a specific mappingpublic DataObjectDefinition getObject()
public ChoiceField getField()
public WorkflowStep getDefaultnextstep()
public void addSpecificNextStep(ChoiceValue value, WorkflowStep specificnextstep)
value
- choice value of the choice fieldspecificnextstep
- specific next workflow step to choosepublic void writeimport(SourceGenerator sg, Module module) throws java.io.IOException
SwitchCondition
writeimport
in class SwitchCondition
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens during the code generationpublic void writedeclaration(SourceGenerator sg, Module module, java.lang.String parentclass, java.lang.String lifecycleclass, java.lang.String taskvariable) throws java.io.IOException
writedeclaration
in class SwitchCondition
sg
- source generatormodule
- parent moduleparentclass
- parent workflow classlifecycleclass
- parent object lifecycle classtaskvariable
- the name of the task variable field in the workflow
codejava.io.IOException
- if anything bad happens during the code generationpublic void writeNextSteps(SourceGenerator sg, Module module, java.lang.String switchtaskcode) throws java.io.IOException
writeNextSteps
in class SwitchCondition
sg
- source generatormodule
- parent moduleswitchtaskcode
- unique code of the taskjava.io.IOException
- if anything bad happens during the code generation