|
jBPM distribution 6.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.services.task.lifecycle.listeners.BAMTaskEventListener
@ApplicationScoped public class BAMTaskEventListener
This listener implementation populates a table named BAMTASKCUMMARY in order to allow BAM module to query all tasks.
The available status for a task instance are:
- Created
- Ready
- Reserved
- InProgress
- Suspended
- Completed
- Failed
- Error
- Exited
- Obsolete
The BAM module does not use all task predefined stauts, the following list shows the status for a jBPM task and the relationship with the BAM task status:
- Kie Task status - BAM task status
- Created - Created
- Ready - Ready
- Reserved - Reserved
- InProgress - InProgress
- Suspended - Suspended
- Completed - Completed
- Exited - Exited
- Failed - Error
- Error - Error
- Obsolete - Error
Nested Class Summary | |
---|---|
protected static interface |
BAMTaskEventListener.BAMTaskWorker
Interface for performing additional operations to a org.jbpm.services.task.impl.model.BAMTaskSummaryImpl instance. |
Constructor Summary | |
---|---|
BAMTaskEventListener()
|
Method Summary | |
---|---|
void |
afterTaskActivatedEvent(Task ti)
|
void |
afterTaskAddedEvent(Task ti)
|
void |
afterTaskClaimedEvent(Task ti)
|
void |
afterTaskCompletedEvent(Task ti)
|
void |
afterTaskDelegatedEvent(Task ti)
|
void |
afterTaskExitedEvent(Task ti)
|
void |
afterTaskFailedEvent(Task ti)
When a task is failed, the status for dashbuilder integration task must be Exited. |
void |
afterTaskForwaredEvent(Task ti)
|
void |
afterTaskNomiatedEvent(Task ti)
|
void |
afterTaskReleasedEvent(Task ti)
|
void |
afterTaskResumedEvent(Task ti)
|
void |
afterTaskSkippedEvent(Task ti)
When a task is skipped, the status for dashbuilder integration task must be Exited. |
void |
afterTaskStartedEvent(Task ti)
|
void |
afterTaskStoppedEvent(Task ti)
When a task is stopped, the status for dashbuilder integration task must be Exited. |
void |
afterTaskSuspendedEvent(Task ti)
|
protected BAMTaskSummaryImpl |
createOrUpdateTask(Task ti)
Creates or updates a bam task summary instance. |
protected BAMTaskSummaryImpl |
createOrUpdateTask(Task ti,
BAMTaskEventListener.BAMTaskWorker worker)
Creates or updates a bam task summary instance. |
protected BAMTaskSummaryImpl |
createOrUpdateTask(Task ti,
Status newStatus)
Creates or updates a bam task summary instance. |
protected BAMTaskSummaryImpl |
createOrUpdateTask(Task ti,
Status newStatus,
BAMTaskEventListener.BAMTaskWorker worker)
Creates or updates a bam task summary instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BAMTaskEventListener()
Method Detail |
---|
public void afterTaskStartedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskStartedEvent
in interface TaskLifeCycleEventListener
public void afterTaskActivatedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskActivatedEvent
in interface TaskLifeCycleEventListener
public void afterTaskClaimedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskClaimedEvent
in interface TaskLifeCycleEventListener
public void afterTaskCompletedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskCompletedEvent
in interface TaskLifeCycleEventListener
public void afterTaskAddedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskAddedEvent
in interface TaskLifeCycleEventListener
public void afterTaskSkippedEvent(Task ti)
afterTaskSkippedEvent
in interface TaskLifeCycleEventListener
ti
- The task.public void afterTaskStoppedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskStoppedEvent
in interface TaskLifeCycleEventListener
ti
- The task.public void afterTaskFailedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskFailedEvent
in interface TaskLifeCycleEventListener
ti
- The task.public void afterTaskExitedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
afterTaskExitedEvent
in interface TaskLifeCycleEventListener
public void afterTaskReleasedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
public void afterTaskDelegatedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
public void afterTaskForwaredEvent(@Observes(notifyObserver=ALWAYS) Task ti)
public void afterTaskNomiatedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
public void afterTaskResumedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
public void afterTaskSuspendedEvent(@Observes(notifyObserver=ALWAYS) Task ti)
protected BAMTaskSummaryImpl createOrUpdateTask(Task ti, BAMTaskEventListener.BAMTaskWorker worker)
ti
- The source taskworker
- Perform additional operations to the bam task summary instance.
protected BAMTaskSummaryImpl createOrUpdateTask(Task ti)
ti
- The source task
protected BAMTaskSummaryImpl createOrUpdateTask(Task ti, Status newStatus)
ti
- The source tasknewStatus
- The new state for the task.
protected BAMTaskSummaryImpl createOrUpdateTask(Task ti, Status newStatus, BAMTaskEventListener.BAMTaskWorker worker)
ti
- The source tasknewStatus
- The new state for the task.worker
- Perform additional operations to the bam task summary instance.
|
jBPM distribution 6.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |