public void addNodeInstance(final NodeInstance nodeInstance) { if (nodeInstance.getId() == -1) { // assign new id only if it does not exist as it might already be set by marshalling // it's important to keep same ids of node instances as they might be references e.g. exclusive group long id = singleNodeInstanceCounter.incrementAndGet(); ((NodeInstanceImpl) nodeInstance).setId(id); } this.nodeInstances.add(nodeInstance); }
public void addNodeInstance(final NodeInstance nodeInstance) { if (nodeInstance.getId() == -1) { // assign new id only if it does not exist as it might already be set by marshalling // it's important to keep same ids of node instances as they might be references e.g. exclusive group long id = singleNodeInstanceCounter.incrementAndGet(); ((NodeInstanceImpl) nodeInstance).setId(id); } this.nodeInstances.add(nodeInstance); }
nodeInstance.setNodeInstanceContainer(nodeInstanceContainer); nodeInstance.setProcessInstance((org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance); nodeInstance.setId(id);
nodeInstance.setId( _node.getId() ); nodeInstance.setNodeInstanceContainer( nodeInstanceContainer ); nodeInstance.setProcessInstance( (org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance );
public void addNodeInstance(final NodeInstance nodeInstance) { if (nodeInstance.getId() == -1) { // assign new id only if it does not exist as it might already be set by marshalling // it's important to keep same ids of node instances as they might be references e.g. exclusive group long id = singleNodeInstanceCounter.incrementAndGet(); ((NodeInstanceImpl) nodeInstance).setId(id); } this.nodeInstances.add(nodeInstance); }
public void addNodeInstance(final NodeInstance nodeInstance) { if (nodeInstance.getId() == -1) { // assign new id only if it does not exist as it might already be set by marshalling // it's important to keep same ids of node instances as they might be references e.g. exclusive group long id = singleNodeInstanceCounter.incrementAndGet(); ((NodeInstanceImpl) nodeInstance).setId(id); } this.nodeInstances.add(nodeInstance); }
nodeInstance.setNodeInstanceContainer(nodeInstanceContainer); nodeInstance.setProcessInstance((org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance); nodeInstance.setId(id);
nodeInstance.setId( _node.getId() ); nodeInstance.setNodeInstanceContainer( nodeInstanceContainer ); nodeInstance.setProcessInstance( (org.jbpm.workflow.instance.WorkflowProcessInstance) processInstance );