public class DutyBuilderImpl<A extends Enum<A>> extends Object implements DutyBuilder, DutyConfiguration<A>
DutyBuilder
implementation.Constructor and Description |
---|
DutyBuilderImpl(String dutyName)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
String |
getDutyName()
Obtains name identifying the
Duty of the Administrator . |
DutyGovernanceConfiguration<?>[] |
getGovernanceConfiguration()
Obtains the configuration for the linked
Governance . |
TaskNodeReference[] |
getLinkedProcessConfiguration()
Obtains the configuration for the
JobSequence instances invoked by the
Duty . |
<F extends Enum<F>> |
linkFlow(F key,
String workName,
String taskName,
Class<?> argumentType)
|
void |
linkFlow(int flowIndex,
String workName,
String taskName,
Class<?> argumentType)
|
<G extends Enum<G>> |
linkGovernance(G key,
String governanceName)
Links a
Governance . |
void |
linkGovernance(int governanceIndex,
String governanceName)
Links a
Governance . |
public <F extends Enum<F>> void linkFlow(F key, String workName, String taskName, Class<?> argumentType)
DutyBuilder
linkFlow
in interface DutyBuilder
F
- Flow key type.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 the Work
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.public void linkFlow(int flowIndex, String workName, String taskName, Class<?> argumentType)
DutyBuilder
linkFlow
in interface DutyBuilder
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 the Work
.argumentType
- Type of argument passed to the instigated JobSequence
.
May be null
to indicate no argument.public <G extends Enum<G>> void linkGovernance(G key, String governanceName)
DutyBuilder
Governance
.linkGovernance
in interface DutyBuilder
G
- Governance
key type.key
- Key for the Duty
to identify the Governance
.governanceName
- Name of the Governance
.public void linkGovernance(int governanceIndex, String governanceName)
DutyBuilder
Governance
.linkGovernance
in interface DutyBuilder
governanceIndex
- Index for the Duty
to identify the Governance
.governanceName
- Name of the Governance
.public String getDutyName()
DutyConfiguration
Duty
of the Administrator
.getDutyName
in interface DutyConfiguration<A extends Enum<A>>
Duty
on the Administrator
.public TaskNodeReference[] getLinkedProcessConfiguration()
DutyConfiguration
JobSequence
instances invoked by the
Duty
.getLinkedProcessConfiguration
in interface DutyConfiguration<A extends Enum<A>>
TaskNodeReference
specifying the first Task
of
the linked JobSequence
.public DutyGovernanceConfiguration<?>[] getGovernanceConfiguration()
DutyConfiguration
Governance
.getGovernanceConfiguration
in interface DutyConfiguration<A extends Enum<A>>
DutyGovernanceConfiguration
specifying the linked
Governance
.Copyright © 2005–2016. All rights reserved.