@Override protected XpdlExecution newChildExecution() { final XpdlExecution child = new XpdlExecution(); child.xpdlInstance = this.getXpdlInstance(); child.iterationId = this.getIterationId(); return child; }
@Override protected XpdlExecution newChildExecution() { XpdlExecution child = new XpdlExecution(); child.xpdlInstance = this.getXpdlInstance(); child.iterationId = this.getIterationId(); return child; }
public XpdlInstance(final XpdlProcess xpdlProcess) { this.processUUID = xpdlProcess.getUUID(); this.packageUUID = xpdlProcess.getPackageDefinitionUUID(); this.uuid = ServiceEnvTool.getUUIDGenerator().getProcessInstanceUUID(this.processUUID); this.rootExecution = new XpdlExecution(); this.rootExecution.xpdlInstance = this; // TODO: process is set in startExecution too, see how we can remove this. // (process is needed to assign instance name from the instance repository) this.rootExecution.setProcessDefinition(xpdlProcess); final Repository repository = EngineEnvTool.getRepository(); repository.storeXpdlInstance(this); this.rootExecution.setName(this.uuid.toString()); }
public XpdlInstance(XpdlProcess xpdlProcess) { this.processUUID = xpdlProcess.getUUID(); this.packageUUID = xpdlProcess.getPackageDefinitionUUID(); this.uuid = new ProcessInstanceUUID(xpdlProcess.getUUID(), EnvTool.getRepository().getNextProcessInstanceNb(processUUID)); this.rootExecution = new XpdlExecution(); this.rootExecution.xpdlInstance = this; // TODO: process is set in startExecution too, see how we can remove this. // (process is needed to assign instance name from the instance repository) this.rootExecution.setProcessDefinition(xpdlProcess); final Repository repository = EnvTool.getRepository(); repository.storeXpdlInstance(this); this.rootExecution.setName(this.uuid.toString()); }