public class Switch extends WorkflowStep
Constructor and Description |
---|
Switch(ComplexWorkflow parent,
SwitchCondition condition)
creates a switch for the workflow for the given condition
|
Modifier and Type | Method and Description |
---|---|
void |
writedeclaration(SourceGenerator sg,
Module module,
java.lang.String parentclass,
java.lang.String lifecycleclass) |
void |
writeimport(SourceGenerator sg,
Module module)
writes the import for this workflow step
|
void |
writeNextSteps(SourceGenerator sg,
Module module)
a recursive method writing the source code for the next steps of the workflow
|
getParent, gettaskid, registerToParentWorkflow, setSequence
public Switch(ComplexWorkflow parent, SwitchCondition condition)
parent
- parent workflowcondition
- condition of the switchpublic void writeimport(SourceGenerator sg, Module module) throws java.io.IOException
WorkflowStep
writeimport
in class WorkflowStep
sg
- sourcce generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflowpublic void writedeclaration(SourceGenerator sg, Module module, java.lang.String parentclass, java.lang.String lifecycleclass) throws java.io.IOException
writedeclaration
in class WorkflowStep
java.io.IOException
public void writeNextSteps(SourceGenerator sg, Module module) throws java.io.IOException
WorkflowStep
writeNextSteps
in class WorkflowStep
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflow