public interface TaskBuilder<W extends Work,D extends Enum<D>,F extends Enum<F>> extends FlowNodeBuilder<F>
Task
.Modifier and Type | Method and Description |
---|---|
void |
addGovernance(String governanceName)
|
void |
linkManagedObject(D key,
String scopeManagedObjectName,
Class<?> objectType)
Links in a
ManagedObject to this Task . |
void |
linkManagedObject(int managedObjectIndex,
String scopeManagedObjectName,
Class<?> objectType)
Links in a
ManagedObject to this Task . |
void |
linkParameter(D key,
Class<?> parameterType)
Links in the parameter for this
Task . |
void |
linkParameter(int index,
Class<?> parameterType)
Links in the parameter for this
Task . |
<A extends Enum<A>> |
linkPostTaskAdministration(String scopeAdministratorName,
A dutyKey)
|
void |
linkPostTaskAdministration(String scopeAdministratorName,
String dutyName)
|
<A extends Enum<A>> |
linkPreTaskAdministration(String scopeAdministratorName,
A dutyKey)
|
void |
linkPreTaskAdministration(String scopeAdministratorName,
String dutyName)
|
void |
setDifferentiator(Object differentiator)
Specifies the differentiator for this
Task . |
addEscalation, addEscalation, linkFlow, linkFlow, linkFlow, linkFlow, setNextTaskInFlow, setNextTaskInFlow, setTeam
void setDifferentiator(Object differentiator)
Specifies the differentiator for this Task
.
This is exposed as is on the TaskManager
interface for this
Task
to allow reflective:
differentiator
- Differentiator.void linkParameter(D key, Class<?> parameterType)
Task
.key
- Key identifying the parameter.parameterType
- Type of the parameter.void linkParameter(int index, Class<?> parameterType)
Task
.index
- Index identifying the parameter.parameterType
- Type of the parameter.void linkManagedObject(D key, String scopeManagedObjectName, Class<?> objectType)
ManagedObject
to this Task
.key
- Key identifying the ManagedObject
.scopeManagedObjectName
- Name of the ManagedObject
within the
ManagedObjectScope
.objectType
- Type required by the Task
.void linkManagedObject(int managedObjectIndex, String scopeManagedObjectName, Class<?> objectType)
ManagedObject
to this Task
.managedObjectIndex
- Index of the ManagedObject
.scopeManagedObjectName
- Name of the ManagedObject
within the
ManagedObjectScope
.objectType
- Type required by the Task
.<A extends Enum<A>> void linkPreTaskAdministration(String scopeAdministratorName, A dutyKey)
A
- Administrator
key type.scopeAdministratorName
- Name of the Administrator
within the
AdministratorScope
.dutyKey
- Key identifying the Duty
.void linkPreTaskAdministration(String scopeAdministratorName, String dutyName)
scopeAdministratorName
- Name of the Administrator
within the
AdministratorScope
.dutyName
- Name identifying the Duty
(as per
AdministratorDutyMetaData
).<A extends Enum<A>> void linkPostTaskAdministration(String scopeAdministratorName, A dutyKey)
A
- Administrator
key type.scopeAdministratorName
- Name of the Administrator
within the
AdministratorScope
.dutyKey
- Key identifying the Duty
.void linkPostTaskAdministration(String scopeAdministratorName, String dutyName)
scopeAdministratorName
- Name of the Administrator
within the
AdministratorScope
.dutyName
- Name identifying the Duty
(as per
AdministratorDutyMetaData
).void addGovernance(String governanceName)
Adds OfficeFloor
managed Governance
to this Task
.
In other words, to execute this Task
the Governance
will
be automatically activated before the Task
is executed (or stay
active from previous Task
).
The Governance
will be:
Task
in the flow does not require the
Governance
or the ThreadState
completes.
Task
not requiring
the Governance
. Note that this does allow Governance
to
stay active should the Escalation
Task
require the
Governance
.governanceName
- Name of the Governance
.Copyright © 2005–2016. All rights reserved.