public class TaskJob<W extends Work,D extends Enum<D>,F extends Enum<F>> extends AbstractJobContainer<W,TaskMetaData<W,D,F>>
Modifier and Type | Field and Description |
---|---|
static int |
PARAMETER_INDEX
Scope index of the
ManagedObjectIndex indicating the parameter
rather than the object of the ManagedObject . |
static ManagedObjectIndex |
PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndex for the parameter. |
ASYNCHRONOUS_FLOW_TEAM_IDENTIFIER, flow, nodeMetaData, workContainer
Constructor and Description |
---|
TaskJob(JobSequence flow,
WorkContainer<W> workContainer,
TaskMetaData<W,D,F> taskMetaData,
GovernanceDeactivationStrategy governanceDeactivationStrategy,
JobNode parallelOwner,
Object parameter)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
executeJob(JobExecuteContext context,
JobContext jobContext,
JobNodeActivateSet activateSet)
Overridden by specific container to execute the
Job . |
protected void |
loadJobName(StringBuilder message)
Loads the
Job name to the message. |
activateJob, addGovernanceActivity, addSetupTask, cancelJob, clearNodes, doFlow, doJob, flagJobToWait, getEscalationProcedure, getJobSequence, getLinkedListSetOwner, getNextJob, getNextNode, getParallelNode, getParallelOwner, getProcessIdentifier, isJobNodeComplete, joinFlow, setJobComplete, setNextJob, setNextNode, setParallelNode, setParallelOwner
getNext, getPrev, setNext, setPrev
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNext, getPrev, setNext, setPrev
public static final int PARAMETER_INDEX
Scope index of the ManagedObjectIndex
indicating the parameter
rather than the object of the ManagedObject
.
As ManagedObjectIndex
are indexes into arrays, the negative value
is safe to use as a parameter index.
public static final ManagedObjectIndex PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndex
for the parameter.public TaskJob(JobSequence flow, WorkContainer<W> workContainer, TaskMetaData<W,D,F> taskMetaData, GovernanceDeactivationStrategy governanceDeactivationStrategy, JobNode parallelOwner, Object parameter)
flow
- JobSequence
.workContainer
- WorkContainer
.taskMetaData
- TaskMetaData
.governanceDeactivationStrategy
- GovernanceDeactivationStrategy
.parallelOwner
- Parallel owning JobNode
.parameter
- Parameter for the Task
.protected void loadJobName(StringBuilder message)
AbstractJobContainer
Job
name to the message.loadJobName
in class AbstractJobContainer<W extends Work,TaskMetaData<W extends Work,D extends Enum<D>,F extends Enum<F>>>
message
- Message to receive the Job
name.protected Object executeJob(JobExecuteContext context, JobContext jobContext, JobNodeActivateSet activateSet) throws Throwable
AbstractJobContainer
Job
.executeJob
in class AbstractJobContainer<W extends Work,TaskMetaData<W extends Work,D extends Enum<D>,F extends Enum<F>>>
context
- JobExecuteContext
.jobContext
- JobContext
.activateSet
- JobNodeActivateSet
.Job
.Throwable
- If failure in executing the Job
.Copyright © 2005–2016. All rights reserved.