public void setState(final int state, String outcome, Object faultData) { this.faultData = faultData; setState(state, outcome); }
public void setState(final int state) { setState(state, null); }
public void nodeInstanceCompleted(NodeInstance nodeInstance, String outType) { Node nodeInstanceNode = nodeInstance.getNode(); if( nodeInstanceNode != null ) { Object compensationBoolObj = nodeInstanceNode.getMetaData().get("isForCompensation"); boolean isForCompensation = compensationBoolObj == null ? false : ((Boolean) compensationBoolObj); if( isForCompensation ) { return; } } if (nodeInstance instanceof FaultNodeInstance || nodeInstance instanceof EndNodeInstance || ((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic() || nodeInstance instanceof CompositeNodeInstance) { if (((org.jbpm.workflow.core.WorkflowProcess) getProcess()).isAutoComplete()) { if (canComplete()) { setState(ProcessInstance.STATE_COMPLETED); } } } else { throw new IllegalArgumentException( "Completing a node instance that has no outgoing connection is not supported."); } }
processInstance.setProcess(process); processInstance.setState(stream.readInt()); long nodeInstanceCounter = stream.readLong(); processInstance.setKnowledgeRuntime(wm.getKnowledgeRuntime());
processInstance.setState( _instance.getState() ); processInstance.setParentProcessInstanceId(_instance.getParentProcessInstanceId()); processInstance.setSignalCompletion(_instance.getSignalCompletion());
public void setState(final int state, String outcome, Object faultData) { this.faultData = faultData; setState(state, outcome); }
public void setState(final int state) { setState(state, null); }
public void nodeInstanceCompleted(NodeInstance nodeInstance, String outType) { Node nodeInstanceNode = nodeInstance.getNode(); if( nodeInstanceNode != null ) { Object compensationBoolObj = nodeInstanceNode.getMetaData().get("isForCompensation"); boolean isForCompensation = compensationBoolObj == null ? false : ((Boolean) compensationBoolObj); if( isForCompensation ) { return; } } if (nodeInstance instanceof FaultNodeInstance || nodeInstance instanceof EndNodeInstance || ((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic() || nodeInstance instanceof CompositeNodeInstance) { if (((org.jbpm.workflow.core.WorkflowProcess) getProcess()).isAutoComplete()) { if (canComplete()) { setState(ProcessInstance.STATE_COMPLETED); } } } else { throw new IllegalArgumentException( "Completing a node instance that has no outgoing connection is not supported."); } }
processInstance.setProcess(process); processInstance.setState(stream.readInt()); long nodeInstanceCounter = stream.readLong(); processInstance.setKnowledgeRuntime(wm.getKnowledgeRuntime());
processInstance.setState( _instance.getState() ); processInstance.setParentProcessInstanceId(_instance.getParentProcessInstanceId()); processInstance.setSignalCompletion(_instance.getSignalCompletion());