public void addEventListeners() { if (timerInstances != null && timerInstances.size() > 0 || slaTimerId > -1) { addTimerListener(); } if (slaCompliance == ProcessInstance.SLA_PENDING) { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); } }
protected void configureSla() { String slaDueDateExpression = (String) getNode().getMetaData().get("customSLADueDate"); if (slaDueDateExpression != null) { TimerInstance timer = ((WorkflowProcessInstanceImpl)getProcessInstance()).configureSLATimer(slaDueDateExpression); if (timer != null) { this.slaTimerId = timer.getId(); this.slaDueDate = new Date(System.currentTimeMillis() + timer.getDelay()); this.slaCompliance = ProcessInstance.SLA_PENDING; logger.debug("SLA for node instance {} is PENDING with due date {}", this.getId(), this.slaDueDate); addTimerListener(); } } }
addTimerListener(); timerInstances = new ArrayList<Long>(timers.size()); TimerManager timerManager = ((InternalProcessRuntime)
public void addEventListeners() { if (timerInstances != null && timerInstances.size() > 0 || slaTimerId > -1) { addTimerListener(); } if (slaCompliance == ProcessInstance.SLA_PENDING) { ((WorkflowProcessInstance) getProcessInstance()).addEventListener("slaViolation:" + getId(), this, true); } }
protected void configureSla() { String slaDueDateExpression = (String) getNode().getMetaData().get("customSLADueDate"); if (slaDueDateExpression != null) { TimerInstance timer = ((WorkflowProcessInstanceImpl)getProcessInstance()).configureSLATimer(slaDueDateExpression); if (timer != null) { this.slaTimerId = timer.getId(); this.slaDueDate = new Date(System.currentTimeMillis() + timer.getDelay()); this.slaCompliance = ProcessInstance.SLA_PENDING; logger.debug("SLA for node instance {} is PENDING with due date {}", this.getId(), this.slaDueDate); addTimerListener(); } } }
addTimerListener(); timerInstances = new ArrayList<Long>(timers.size()); TimerManager timerManager = ((InternalProcessRuntime)