public void start() {
// We should check that the first node inside the process.nodes is a startEventNode
NodeInstance startEventNode = NodeInstanceFactory.newNodeInstance(this, process.getNodes().get(0L));
this.nodeContainer.addNodeInstance(startEventNode);
this.status = STATUS.ACTIVE;
startEventNode.trigger(null, null);
}
@Override
public void setProcessDefinition(ProcessDefinition process) {