public void addNodeInstance(NodeInstance nodeInstance) { nodeInstances.put(nodeInstance.getId(), nodeInstance); }
public boolean containsNodeInstance(NodeInstance nodeInstance) { return nodeInstances.containsKey(nodeInstance.getId()); }
public Object writeNodeInstance(MarshallerWriteContext context, NodeInstance nodeInstance) throws IOException { ObjectOutputStream stream = context.stream; stream.writeLong(nodeInstance.getId()); stream.writeLong(nodeInstance.getNodeId()); writeNodeInstanceContent(stream, nodeInstance, context); return null; }
protected Long getInitActivityId(ExecutionErrorContext context) { if (context.getFirstExecutedNode() == null) { return null; } return context.getFirstExecutedNode().getId(); }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script2")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("sub-script")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script2")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName().equals("User Task 2")) { executednodes.add(event.getNodeInstance().getId()); } }
@Override public void afterNodeLeft(ProcessNodeLeftEvent event) { if (event.getNodeInstance().getNodeName() .equals("Script Task 1")) { executednodes.add(event.getNodeInstance().getId()); } }
private void initialize(NodeInstance nodeInstance, ProcessInstance processInstance) { this.processInstanceId = processInstance.getId(); this.processId = processInstance.getProcessId(); this.setDeploymentId(((ProcessInstanceImpl)processInstance).getDeploymentId()); if( nodeInstance != null ) { this.nodeInstanceId = nodeInstance.getId(); this.nodeId = nodeInstance.getNodeId(); if( ((ProcessInstanceImpl) processInstance).getKnowledgeRuntime() != null ) { this.nodeName = nodeInstance.getNodeName(); } } VariableScopeInstance variableScope = (VariableScopeInstance) ((org.jbpm.process.instance.ProcessInstance) processInstance).getContextInstance( VariableScope.VARIABLE_SCOPE ); // set input parameters if( variableScope != null ) { this.variables = variableScope.getVariables(); } else { this.variables = new HashMap<String, Object>(0); } }
public JBPMMessages.ProcessInstance.NodeInstance writeNodeInstance(MarshallerWriteContext context, NodeInstance nodeInstance) throws IOException { JBPMMessages.ProcessInstance.NodeInstance.Builder _node = JBPMMessages.ProcessInstance.NodeInstance.newBuilder() .setId( nodeInstance.getId() ) .setNodeId( nodeInstance.getNodeId()) .setLevel(((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getLevel()) .setSlaCompliance(((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getSlaCompliance()); if (((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getSlaDueDate() != null) { _node.setSlaDueDate(((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getSlaDueDate().getTime()); } if (((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getSlaTimerId() != null) { _node.setSlaTimerId(((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getSlaTimerId()); } _node.setContent( writeNodeInstanceContent( _node, nodeInstance, context ) ); return _node.build(); }