use of org.kie.api.task.TaskLifeCycleEventListener in project jbpm by kiegroup.
the class TaskEventSupport method fireAfterTaskReassigned.
public void fireAfterTaskReassigned(final Task task, TaskContext context) {
final Iterator<TaskLifeCycleEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
do {
TaskLifeCycleEventListener listener = iter.next();
listener.afterTaskReassignedEvent(new TaskEventImpl(task, context));
} while (iter.hasNext());
}
}
use of org.kie.api.task.TaskLifeCycleEventListener in project jbpm by kiegroup.
the class TaskEventSupport method fireAfterTaskNotified.
public void fireAfterTaskNotified(final Task task, TaskContext context) {
final Iterator<TaskLifeCycleEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
do {
TaskLifeCycleEventListener listener = iter.next();
listener.afterTaskNotificationEvent(new TaskEventImpl(task, context));
} while (iter.hasNext());
}
}
use of org.kie.api.task.TaskLifeCycleEventListener in project jbpm by kiegroup.
the class TaskEventSupport method fireAfterTaskAssignmentsAddedEvent.
public void fireAfterTaskAssignmentsAddedEvent(final Task task, TaskContext context, AssignmentType type, List<OrganizationalEntity> entities) {
final Iterator<TaskLifeCycleEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
do {
TaskLifeCycleEventListener listener = iter.next();
listener.afterTaskAssignmentsAddedEvent(new TaskEventImpl(task, context), type, entities);
} while (iter.hasNext());
}
}
use of org.kie.api.task.TaskLifeCycleEventListener in project jbpm by kiegroup.
the class TaskEventSupport method fireBeforeTaskNotified.
public void fireBeforeTaskNotified(final Task task, TaskContext context) {
final Iterator<TaskLifeCycleEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
do {
TaskLifeCycleEventListener listener = iter.next();
listener.beforeTaskNominatedEvent(new TaskEventImpl(task, context));
} while (iter.hasNext());
}
}
use of org.kie.api.task.TaskLifeCycleEventListener in project jbpm by kiegroup.
the class TaskEventSupport method fireAfterTaskAssignmentsRemovedEvent.
public void fireAfterTaskAssignmentsRemovedEvent(final Task task, TaskContext context, AssignmentType type, List<OrganizationalEntity> entities) {
final Iterator<TaskLifeCycleEventListener> iter = getEventListenersIterator();
if (iter.hasNext()) {
do {
TaskLifeCycleEventListener listener = iter.next();
listener.afterTaskAssignmentsRemovedEvent(new TaskEventImpl(task, context), type, entities);
} while (iter.hasNext());
}
}
Aggregations