this.parentId = source.getParentProcessInstanceId(); this.caseDefinitionId = source.getProcessId(); this.caseDescription = ((WorkflowProcessInstanceImpl)source).getDescription(); this.caseDefinitionName = source.getProcessName(); this.caseStatus = source.getState();
when(processInstance.getParentProcessInstanceId()).thenReturn(-1L); when(processInstance.getProcessId()).thenReturn("myprocess"); when(processInstance.getDescription()).thenReturn(""); when(processInstance.getProcessName()).thenReturn("MyProcess"); when(processInstance.getState()).thenReturn(1);
@Override public void copyFromSource() { if (this.id != null) { return; } this.compositeId = System.getProperty("org.kie.server.id", "") + "_" + source.getId(); this.containerId = ((WorkflowProcessInstance)source).getDeploymentId(); this.correlationKey = ((WorkflowProcessInstanceImpl)source).getCorrelationKey(); this.date = new Date(); this.id = source.getId(); this.initiator = (String) ((WorkflowProcessInstanceImpl)source).getVariable("initiator"); this.parentId = source.getParentProcessInstanceId(); this.processId = source.getProcessId(); this.processInstanceDescription = ((WorkflowProcessInstanceImpl)source).getDescription(); this.processName = source.getProcessName(); this.processVersion = source.getProcess().getVersion(); this.state = source.getState(); this.variables = ((WorkflowProcessInstanceImpl)source).getVariables(); }
when(processInstance.getParentProcessInstanceId()).thenReturn(-1L); when(processInstance.getProcessId()).thenReturn("myprocess"); when(processInstance.getDescription()).thenReturn(""); when(processInstance.getProcessName()).thenReturn("MyProcess"); when(processInstance.getState()).thenReturn(1);
_instance.setProcessXml( workFlow.getProcessXml()); if (workFlow.getDescription() != null) { _instance.setDescription(workFlow.getDescription());
this.parentId = source.getParentProcessInstanceId(); this.caseDefinitionId = source.getProcessId(); this.caseDescription = ((WorkflowProcessInstanceImpl)source).getDescription(); this.caseDefinitionName = source.getProcessName(); this.caseStatus = source.getState();
@Override public void copyFromSource() { if (this.id != null) { return; } this.compositeId = System.getProperty("org.kie.server.id", "") + "_" + source.getId(); this.containerId = ((WorkflowProcessInstance)source).getDeploymentId(); this.correlationKey = ((WorkflowProcessInstanceImpl)source).getCorrelationKey(); this.date = new Date(); this.id = source.getId(); this.initiator = (String) ((WorkflowProcessInstanceImpl)source).getVariable("initiator"); this.parentId = source.getParentProcessInstanceId(); this.processId = source.getProcessId(); this.processInstanceDescription = ((WorkflowProcessInstanceImpl)source).getDescription(); this.processName = source.getProcessName(); this.processVersion = source.getProcess().getVersion(); this.state = source.getState(); this.variables = ((WorkflowProcessInstanceImpl)source).getVariables(); }
_instance.setProcessXml( workFlow.getProcessXml()); if (workFlow.getDescription() != null) { _instance.setDescription(workFlow.getDescription());