public abstract class WorkflowStep
extends java.lang.Object
Constructor and Description |
---|
WorkflowStep(ComplexWorkflow parent)
Creates a workflow step for the given complex workflow
|
Modifier and Type | Method and Description |
---|---|
ComplexWorkflow |
getParent() |
java.lang.String |
gettaskid() |
void |
registerToParentWorkflow()
register the step in the parent workflow
|
void |
setSequence(int sequence)
sets the unique sequence of the workflow step (should be unique for the
complex workflow)
|
abstract void |
writedeclaration(SourceGenerator sg,
Module module,
java.lang.String parentclass,
java.lang.String lifecycleclass) |
abstract void |
writeimport(SourceGenerator sg,
Module module)
writes the import for this workflow step
|
abstract void |
writeNextSteps(SourceGenerator sg,
Module module)
a recursive method writing the source code for the next steps of the workflow
|
public WorkflowStep(ComplexWorkflow parent)
parent
- parent complex workflowpublic ComplexWorkflow getParent()
public void registerToParentWorkflow()
public abstract void writeimport(SourceGenerator sg, Module module) throws java.io.IOException
sg
- sourcce generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflowpublic abstract void writedeclaration(SourceGenerator sg, Module module, java.lang.String parentclass, java.lang.String lifecycleclass) throws java.io.IOException
sg
- module
- parentclass
- lifecycleclass
- java.io.IOException
public java.lang.String gettaskid()
public void setSequence(int sequence)
sequence
- a unique sequence for the workflowpublic abstract void writeNextSteps(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflow