Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(processInstance.getId()).isEqualTo(nodeInstance.getProcessInstanceId().longValue()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(12); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow3"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow3"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
private void assertLogContent(NodeInstanceLog log, long nodeInstanceId, String processId, Integer type, String nodeType, String nodeName){ assertEquals(nodeInstanceId,log.getProcessInstanceId().longValue()); assertEquals(processId,log.getProcessId()); assertEquals(type,log.getType()); assertEquals(nodeType, log.getNodeType()); assertEquals(nodeName,log.getNodeName()); } }
long processInstanceId = nilTestData[p++].getProcessInstanceId(); builder = this.nodeInstanceLogQuery().processInstanceId(processInstanceId); resultList = builder.build().getResultList();
ProcessInstanceLog pLog = buildCompletedProcessInstance(nil.getProcessInstanceId()); testDataPI[i] = pLog; break; case 7: testData[i-1].setProcessInstanceId(testData[i].getProcessInstanceId()); break; case 8:
break; case 7: testData[i-1].setProcessInstanceId(testData[i].getProcessInstanceId()); break; case 8:
RuntimeEngine engine = runtimeManager.getRuntimeEngine(ProcessInstanceIdContext.get(niLog.getProcessInstanceId())); engine.getKieSession().signalEvent("slaViolation:" + niLog.getNodeInstanceId(), null, niLog.getProcessInstanceId()); nodeSignals++; } catch (Exception e) { logger.warn("Unexpected error when signalig process instance {} about SLA violation {}", niLog.getProcessInstanceId(), e.getMessage(), e); } finally { runtimeManager.disposeRuntimeEngine(engine);
Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(processInstance.getId()).isEqualTo(nodeInstance.getProcessInstanceId().longValue()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(12); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow3"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
Assertions.assertThat(nodeInstances.size()).isEqualTo(6); for (NodeInstanceLog nodeInstance: nodeInstances) { Assertions.assertThat(nodeInstance.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId()); Assertions.assertThat(nodeInstance.getProcessId()).isEqualTo("com.sample.ruleflow3"); Assertions.assertThat(nodeInstance.getDate()).isNotNull();
private void assertLogContent(NodeInstanceLog log, long nodeInstanceId, String processId, Integer type, String nodeType, String nodeName){ assertEquals(nodeInstanceId,log.getProcessInstanceId().longValue()); assertEquals(processId,log.getProcessId()); assertEquals(type,log.getType()); assertEquals(nodeType, log.getNodeType()); assertEquals(nodeName,log.getNodeName()); } }
long processInstanceId = nilTestData[p++].getProcessInstanceId(); builder = this.nodeInstanceLogQuery().processInstanceId(processInstanceId); resultList = builder.build().getResultList();
ProcessInstanceLog pLog = buildCompletedProcessInstance(nil.getProcessInstanceId()); testDataPI[i] = pLog; break; case 7: testData[i-1].setProcessInstanceId(testData[i].getProcessInstanceId()); break; case 8:
break; case 7: testData[i-1].setProcessInstanceId(testData[i].getProcessInstanceId()); break; case 8: