public void cancel() { if (this.slaCompliance == ProcessInstance.SLA_PENDING) { if (System.currentTimeMillis() > slaDueDate.getTime()) { // completion of the process instance is after expected SLA due date, mark it accordingly this.slaCompliance = ProcessInstance.SLA_VIOLATED; } else { this.slaCompliance = ProcessInstance.SLA_ABORTED; } } cancelSlaTimer(); cancelTimers(); removeEventListeners(); removeActivationListener(); super.cancel(); }
protected void triggerCompleted(String type, boolean remove) { if (this.slaCompliance == ProcessInstance.SLA_PENDING) { if (System.currentTimeMillis() > slaDueDate.getTime()) { // completion of the node instance is after expected SLA due date, mark it accordingly this.slaCompliance = ProcessInstance.SLA_VIOLATED; } else { this.slaCompliance = ProcessInstance.STATE_COMPLETED; } } cancelSlaTimer(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel()); cancelTimers(); removeActivationListener(); super.triggerCompleted(type, remove); }
public void cancel() { if (this.slaCompliance == ProcessInstance.SLA_PENDING) { if (System.currentTimeMillis() > slaDueDate.getTime()) { // completion of the process instance is after expected SLA due date, mark it accordingly this.slaCompliance = ProcessInstance.SLA_VIOLATED; } else { this.slaCompliance = ProcessInstance.SLA_ABORTED; } } cancelSlaTimer(); cancelTimers(); removeEventListeners(); removeActivationListener(); super.cancel(); }
protected void triggerCompleted(String type, boolean remove) { if (this.slaCompliance == ProcessInstance.SLA_PENDING) { if (System.currentTimeMillis() > slaDueDate.getTime()) { // completion of the node instance is after expected SLA due date, mark it accordingly this.slaCompliance = ProcessInstance.SLA_VIOLATED; } else { this.slaCompliance = ProcessInstance.STATE_COMPLETED; } } cancelSlaTimer(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel()); cancelTimers(); removeActivationListener(); super.triggerCompleted(type, remove); }