public interface FlowNodeBuilder<F extends Enum<F>>
JobSequence
and provides linking to other
JobSequence
instances.Modifier and Type | Method and Description |
---|---|
void |
addEscalation(Class<? extends Throwable> typeOfCause,
String taskName)
|
void |
addEscalation(Class<? extends Throwable> typeOfCause,
String workName,
String taskName)
|
void |
linkFlow(F key,
String taskName,
FlowInstigationStrategyEnum strategy,
Class<?> argumentType)
|
void |
linkFlow(F key,
String workName,
String taskName,
FlowInstigationStrategyEnum strategy,
Class<?> argumentType)
|
void |
linkFlow(int flowIndex,
String taskName,
FlowInstigationStrategyEnum strategy,
Class<?> argumentType)
|
void |
linkFlow(int flowIndex,
String workName,
String taskName,
FlowInstigationStrategyEnum strategy,
Class<?> argumentType)
|
void |
setNextTaskInFlow(String taskName,
Class<?> argumentType)
|
void |
setNextTaskInFlow(String workName,
String taskName,
Class<?> argumentType)
|
void |
setTeam(String officeTeamName)
|
void setTeam(String officeTeamName)
void setNextTaskInFlow(String taskName, Class<?> argumentType)
taskName
- Name of the next Task
in the JobSequence
.argumentType
- Type of argument passed to the next Task
. May be
null
to indicate no argument.void setNextTaskInFlow(String workName, String taskName, Class<?> argumentType)
workName
- Name of Work
containing the Task
.taskName
- Name of the next Task
in the JobSequence
.argumentType
- Type of argument passed to the next Task
. May be
null
to indicate no argument.void linkFlow(F key, String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
key
- Key identifying the JobSequence
.taskName
- Name of Task
that resides on same Work
as this
Task
.strategy
- Strategy to instigate the JobSequence
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.void linkFlow(int flowIndex, String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
flowIndex
- Index identifying the JobSequence
.taskName
- Name of Task
that resides on same Work
as this
Task
.strategy
- Strategy to instigate the JobSequence
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.void linkFlow(F key, String workName, String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
key
- Key identifying the JobSequence
.workName
- Name of the Work
that the first Task
of the
JobSequence
resides on.taskName
- Name of Task
that resides on a different Work
as this Task
.strategy
- Strategy to instigate the JobSequence
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.void linkFlow(int flowIndex, String workName, String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
flowIndex
- Index identifying the JobSequence
.workName
- Name of the Work
that the first Task
of the
JobSequence
resides on.taskName
- Name of Task
that resides on a different Work
as this Task
.strategy
- Strategy to instigate the JobSequence
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.void addEscalation(Class<? extends Throwable> typeOfCause, String taskName)
Adds an EscalationFlow
to the EscalationProcedure
for the
Task
.
The order in which the EscalationFlow
instances are added is the
order in which they are checked for handling escalation. Only one
EscalationFlow
is used to handle escalation and the first one
covering the cause will be used.
typeOfCause
- Type of cause handled by this EscalationFlow
.taskName
- Name of the Task
that resides on the same Work
as this Task
.addEscalation(Class, String, String)
void addEscalation(Class<? extends Throwable> typeOfCause, String workName, String taskName)
typeOfCause
- Type of cause handled by this EscalationFlow
.workName
- Name of the Work
that the first Task
of the
JobSequence
resides on.taskName
- Name of Task
that resides on a different Work
as this Task
.addEscalation(Class, String)
Copyright © 2005–2016. All rights reserved.