this.caseId = ((WorkflowProcessInstanceImpl)source).getCorrelationKey(); this.date = new Date(); this.id = source.getId();
if (((WorkflowProcessInstanceImpl) processInstance).getCorrelationKey() != null) { List<String> businessKeys = new ArrayList<String>(); businessKeys.add(((WorkflowProcessInstanceImpl) processInstance).getCorrelationKey()); businessKeys.add(processId); businessKeys.add(String.valueOf(System.currentTimeMillis()));
@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.getId()).thenReturn(99L); when(processInstance.getDeploymentId()).thenReturn("test"); when(processInstance.getCorrelationKey()).thenReturn("key"); when(processInstance.getParentProcessInstanceId()).thenReturn(-1L); when(processInstance.getProcessId()).thenReturn("myprocess");
when(processInstance.getId()).thenReturn(99L); when(processInstance.getDeploymentId()).thenReturn("test"); when(processInstance.getCorrelationKey()).thenReturn("key"); when(processInstance.getParentProcessInstanceId()).thenReturn(-1L); when(processInstance.getProcessId()).thenReturn("myprocess");
if (((WorkflowProcessInstanceImpl)getProcessInstance()).getCorrelationKey() != null) { businessKeys.add(((WorkflowProcessInstanceImpl)getProcessInstance()).getCorrelationKey()); businessKeys.add(processId); businessKeys.add(String.valueOf(System.currentTimeMillis()));
if (workFlow.getCorrelationKey() != null) { _instance.setCorrelationKey(workFlow.getCorrelationKey());
this.caseId = ((WorkflowProcessInstanceImpl)source).getCorrelationKey(); this.date = new Date(); this.id = source.getId();
if (((WorkflowProcessInstanceImpl) processInstance).getCorrelationKey() != null) { List<String> businessKeys = new ArrayList<String>(); businessKeys.add(((WorkflowProcessInstanceImpl) processInstance).getCorrelationKey()); businessKeys.add(processId); businessKeys.add(String.valueOf(System.currentTimeMillis()));
@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(); }
if (((WorkflowProcessInstanceImpl)getProcessInstance()).getCorrelationKey() != null) { businessKeys.add(((WorkflowProcessInstanceImpl)getProcessInstance()).getCorrelationKey()); businessKeys.add(processId); businessKeys.add(String.valueOf(System.currentTimeMillis()));
if (workFlow.getCorrelationKey() != null) { _instance.setCorrelationKey(workFlow.getCorrelationKey());