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 triggerEvent(String type) { ExtendedNodeImpl extendedNode = getExtendedNode(); if (extendedNode == null) { return; } List<DroolsAction> actions = extendedNode.getActions(type); if (actions != null) { for (DroolsAction droolsAction: actions) { Action action = (Action) droolsAction.getMetaData("Action"); executeAction(action); } } }
public ExtendedNodeImpl getExtendedNode() { return (ExtendedNodeImpl) getNode(); }
public void internalTrigger(NodeInstance from, String type) { triggerEvent(ExtendedNodeImpl.EVENT_NODE_ENTER); }
public void triggerCompleted(boolean remove) { triggerCompleted(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE, remove); }
public void internalTrigger(final NodeInstance from, String type) { super.internalTrigger(from, type); if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) { throw new IllegalArgumentException(
protected void triggerCompleted(String type, boolean remove) { triggerEvent(ExtendedNodeImpl.EVENT_NODE_EXIT); super.triggerCompleted(type, remove); }
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 internalTrigger(NodeInstance from, String type) { super.internalTrigger(from, type);
protected void triggerEvent(String type) { ExtendedNodeImpl extendedNode = getExtendedNode(); if (extendedNode == null) { return; } List<DroolsAction> actions = extendedNode.getActions(type); if (actions != null) { for (DroolsAction droolsAction: actions) { Action action = (Action) droolsAction.getMetaData("Action"); executeAction(action); } } }
public void internalTrigger(NodeInstance from, String type) { triggerEvent(ExtendedNodeImpl.EVENT_NODE_ENTER); }
public void triggerCompleted(boolean remove) { triggerCompleted(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE, remove); }
@Override public void cancel() { getProcessInstance().removeEventListener(getEventType(), getEventListener(), true); removeTimerListeners(); 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; } } removeTimerListeners(); super.cancel(); }
public void internalTrigger(final NodeInstance from, String type) { super.internalTrigger(from, type); if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) { throw new IllegalArgumentException(
public ExtendedNodeImpl getExtendedNode() { return (ExtendedNodeImpl) getNode(); }
protected void triggerCompleted(String type, boolean remove) { triggerEvent(ExtendedNodeImpl.EVENT_NODE_EXIT); super.triggerCompleted(type, remove); }
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(); }
public void internalTrigger(NodeInstance from, String type) { super.internalTrigger(from, type);
@Override public void cancel() { getProcessInstance().removeEventListener(getEventType(), getEventListener(), true); removeTimerListeners(); 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; } } removeTimerListeners(); super.cancel(); }