public void addExceptionProcessListener() { if (exceptionHandlingProcessInstanceId > -1) { getProcessInstance().addEventListener("processInstanceCompleted:" + exceptionHandlingProcessInstanceId, this, true); } }
private void addTriggerListener() { getProcessInstance().addEventListener("signal", this, false); }
private void addWorkItemListener() { getProcessInstance().addEventListener("workItemCompleted", this, false); getProcessInstance().addEventListener("workItemAborted", this, false); }
private void addProcessListener() { getProcessInstance().addEventListener("processInstanceCompleted:" + processInstanceId, this, true); }
protected void addTimerListener() { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timerTriggered", this, false); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timer", this, true); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); }
private void addActivationListener() { getProcessInstance().addEventListener(getActivationType(), this, true); }
protected void addTimerListener() { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timerTriggered", new VariableExternalEventListener("timerTriggered"), false); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timer", new VariableExternalEventListener("timer"), true); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), new VariableExternalEventListener("slaViolation"), true); }
public void addEventListeners() { if (timerInstances != null && timerInstances.size() > 0 || slaTimerId > -1) { addTimerListener(); } if (slaCompliance == ProcessInstance.SLA_PENDING) { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); } }
private void addRuleSetListener() { getProcessInstance().addEventListener(getRuleSetEventType(), this, true); }
private void addActivationListener() { getProcessInstance().addEventListener(getActivationEventType(), this, true); }
private void registerExternalEventNodeListeners() { for (Node node: getCompositeNode().getNodes()) { if (node instanceof EventNode) { if ("external".equals(((EventNode) node).getScope())) { getProcessInstance().addEventListener( ((EventNode) node).getType(), EMPTY_EVENT_LISTENER, true); } } else if (node instanceof EventSubProcessNode) { List<String> events = ((EventSubProcessNode) node).getEvents(); for (String type : events) { getProcessInstance().addEventListener(type, EMPTY_EVENT_LISTENER, true); } } } }
@Override public void addEventListeners() { String eventType = getEventType(); if (isVariableExpression(getEventNode().getType())) { getProcessInstance().addEventListener(eventType, new VariableExternalEventListener(eventType), true); } else { getProcessInstance().addEventListener(eventType, getEventListener(), true); } if (slaTimerId > -1) { addTimerListener(); } }
private void addActivationListener() { getProcessInstance().getKnowledgeRuntime().addEventListener(this); getProcessInstance().addEventListener(getActivationEventType(), this, true); }
private void addActivationListener() { getProcessInstance().getKnowledgeRuntime().addEventListener(this); getProcessInstance().addEventListener(getActivationEventType(), this, true); }
public void addExceptionProcessListener() { if (exceptionHandlingProcessInstanceId > -1) { getProcessInstance().addEventListener("processInstanceCompleted:" + exceptionHandlingProcessInstanceId, this, true); } }
private void addWorkItemListener() { getProcessInstance().addEventListener("workItemCompleted", this, false); getProcessInstance().addEventListener("workItemAborted", this, false); }
protected void addTimerListener() { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timerTriggered", this, false); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timer", this, true); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); }
protected void addTimerListener() { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timerTriggered", new VariableExternalEventListener("timerTriggered"), false); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("timer", new VariableExternalEventListener("timer"), true); ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), new VariableExternalEventListener("slaViolation"), true); }
public void addEventListeners() { if (timerInstances != null && timerInstances.size() > 0 || slaTimerId > -1) { addTimerListener(); } if (slaCompliance == ProcessInstance.SLA_PENDING) { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); } }
@Override public void addEventListeners() { String eventType = getEventType(); if (isVariableExpression(getEventNode().getType())) { getProcessInstance().addEventListener(eventType, new VariableExternalEventListener(eventType), true); } else { getProcessInstance().addEventListener(eventType, getEventListener(), true); } if (slaTimerId > -1) { addTimerListener(); } }