public NodeInstance getFirstNodeInstance(final long nodeId) { for (final Iterator<NodeInstance> iterator = this.nodeInstances .iterator(); iterator.hasNext();) { final NodeInstance nodeInstance = iterator.next(); if (nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) { return nodeInstance; } } return null; }
public NodeInstance getFirstNodeInstance(final long nodeId) { for ( final Iterator<NodeInstance> iterator = this.nodeInstances.iterator(); iterator.hasNext(); ) { final NodeInstance nodeInstance = iterator.next(); if ( nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) { return nodeInstance; } } return null; }
if (((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getLevel() != getLevel()) { continue;
int level = ((org.jbpm.workflow.instance.NodeInstance)from).getLevel(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(level); Collection<Connection> incoming = getNode().getIncomingConnections(type);
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(); }
public NodeInstance getFirstNodeInstance(final long nodeId) { for ( final Iterator<NodeInstance> iterator = this.nodeInstances.iterator(); iterator.hasNext(); ) { final NodeInstance nodeInstance = iterator.next(); if ( nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) { return nodeInstance; } } return null; }
public NodeInstance getFirstNodeInstance(final long nodeId) { for (final Iterator<NodeInstance> iterator = this.nodeInstances .iterator(); iterator.hasNext();) { final NodeInstance nodeInstance = iterator.next(); if (nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) { return nodeInstance; } } return null; }
if (((org.jbpm.workflow.instance.NodeInstance)nodeInstance).getLevel() != getLevel()) { continue;
int level = ((org.jbpm.workflow.instance.NodeInstance)from).getLevel(); ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(level); Collection<Connection> incoming = getNode().getIncomingConnections(type);
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(); }