protected BusinessProcessEvent createEvent(DelegateTask task) { ExecutionContext executionContext = Context.getExecutionContext(); ProcessDefinitionEntity processDefinition = null; if (executionContext != null) { processDefinition = executionContext.getProcessDefinition(); } // map type String eventName = task.getEventName(); BusinessProcessEventType type = null; if (TaskListener.EVENTNAME_CREATE.equals(eventName)) { type = BusinessProcessEventType.CREATE_TASK; } else if (TaskListener.EVENTNAME_ASSIGNMENT.equals(eventName)) { type = BusinessProcessEventType.ASSIGN_TASK; } else if (TaskListener.EVENTNAME_COMPLETE.equals(eventName)) { type = BusinessProcessEventType.COMPLETE_TASK; } else if (TaskListener.EVENTNAME_DELETE.equals(eventName)) { type = BusinessProcessEventType.DELETE_TASK; } return new CdiBusinessProcessEvent(task, processDefinition, type, ClockUtil.getCurrentTime()); }
public void notify(DelegateTask delegateTask) { delegateTask.setVariable(delegateTask.getEventName(), true); } };
public void notify(DelegateTask delegateTask) { notify(delegateTask, delegateTask.getEventName()); }
public void notify(DelegateTask task) { DelegateExecution execution = task.getExecution(); recordedEvents.add(new RecordedTaskEvent(task.getId(), task.getExecutionId(), task.getEventName(), execution.getActivityInstanceId())); }
@Override void setValueIntoDictionary(Dictionary<String, String> dictionary, DelegateTask task) { if (task.getEventName() != null) { dictionary.put(getPropertyKey(), task.getEventName()); } } },
/** * Implementation of the event dispatching. * * @param delegateExecution * process execution */ public final void notify(DelegateTask delegateTask) { Guards.dispatch(this, delegateTask.getEventName(), delegateTask.getExecution()); } }
public void notify(DelegateTask delegateTask) { notify(delegateTask, delegateTask.getEventName()); }
protected BusinessProcessEvent createEvent(DelegateTask task) { ExecutionContext executionContext = Context.getExecutionContext(); ProcessDefinitionEntity processDefinition = null; if (executionContext != null) { processDefinition = executionContext.getProcessDefinition(); } // map type String eventName = task.getEventName(); BusinessProcessEventType type = null; if (TaskListener.EVENTNAME_CREATE.equals(eventName)) { type = BusinessProcessEventType.CREATE_TASK; } else if (TaskListener.EVENTNAME_ASSIGNMENT.equals(eventName)) { type = BusinessProcessEventType.ASSIGN_TASK; } else if (TaskListener.EVENTNAME_COMPLETE.equals(eventName)) { type = BusinessProcessEventType.COMPLETE_TASK; } else if (TaskListener.EVENTNAME_DELETE.equals(eventName)) { type = BusinessProcessEventType.DELETE_TASK; } return new CdiBusinessProcessEvent(task, processDefinition, type, ClockUtil.getCurrentTime()); }
public void notify(DelegateTask task) { DelegateExecution execution = task.getExecution(); recordedEvents.add(new RecordedTaskEvent(task.getId(), task.getExecutionId(), task.getEventName(), execution.getActivityInstanceId())); }
public static SelectorBuilder selector(final DelegateTask delegateTask) { return selector() .context(Context.task) .type(null) .process(GetProcessDefinitionKey.from(delegateTask)) .element(delegateTask.getTaskDefinitionKey()) .event(delegateTask.getEventName()); }