private void addFlowFromTask(final AbstractFlowNodeBuilder<?, ?> builder, final YamlTask task) { if (!task.getCases().isEmpty()) { final String gatewayId = "split-" + task.getId(); final ExclusiveGatewayBuilder gatewayBuilder = builder.exclusiveGateway(gatewayId); for (YamlCase flow : task.getCases()) { if (flow.getDefaultCase() != null) { gatewayBuilder.defaultFlow(); addTask(gatewayBuilder, flow.getDefaultCase()); } else { gatewayBuilder.condition(flow.getCondition()); addTask(gatewayBuilder, flow.getNext()); } } } else if (task.getNext() != null) { addTask(builder, task.getNext()); } else { final YamlTask nextTask = getNextTask(task); if (!task.isEnd() && nextTask != null) { addTask(builder, nextTask.getId()); } else { builder.endEvent(); } } }
private void addFlowFromTask(final AbstractFlowNodeBuilder<?, ?> builder, final YamlTask task) { if (!task.getCases().isEmpty()) { final String gatewayId = "split-" + task.getId(); final ExclusiveGatewayBuilder gatewayBuilder = builder.exclusiveGateway(gatewayId); for (YamlCase flow : task.getCases()) { if (flow.getDefaultCase() != null) { gatewayBuilder.defaultFlow(); addTask(gatewayBuilder, flow.getDefaultCase()); } else { gatewayBuilder.condition(flow.getCondition()); addTask(gatewayBuilder, flow.getNext()); } } } else if (task.getNext() != null) { addTask(builder, task.getNext()); } else { final YamlTask nextTask = getNextTask(task); if (!task.isEnd() && nextTask != null) { addTask(builder, nextTask.getId()); } else { builder.endEvent(); } } }
.exclusiveGateway("split") .sequenceFlowId("s1") .condition("$.foo < 5") .exclusiveGateway("joinRequest") .moveToLastExclusiveGateway()
.exclusiveGateway("split") .sequenceFlowId("s1") .condition("$.foo < 5") .exclusiveGateway("joinRequest") .moveToLastExclusiveGateway()
.exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent("a") .moveToLastExclusiveGateway()
.exclusiveGateway("split") .sequenceFlowId("s1") .condition("$.foo < 5") .exclusiveGateway("joinRequest") .moveToLastExclusiveGateway()
@Before public void init() { testClient = apiRule.partitionClient(); apiRule.waitForPartition(1); testClient.deploy( Bpmn.createExecutableProcess("workflow") .startEvent() .exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent() .moveToLastGateway() .sequenceFlowId("s2") .condition("$.foo >= 5 && $.foo < 10") .endEvent() .done()); }
@Before public void init() { testClient = apiRule.partitionClient(); apiRule.waitForPartition(1); testClient.deploy( Bpmn.createExecutableProcess("workflow") .startEvent() .exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent() .moveToLastGateway() .sequenceFlowId("s2") .condition("$.foo >= 5 && $.foo < 10") .endEvent() .done()); }
.exclusiveGateway("split") .sequenceFlowId("s1") .condition("$.foo < 5") .exclusiveGateway("joinRequest") .moveToLastExclusiveGateway()
.exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent("a") .moveToLastExclusiveGateway()
.exclusiveGateway() .sequenceFlowId("flow") .condition("foo") .endEvent() .done(),
.exclusiveGateway() .sequenceFlowId("flow") .condition("foo") .endEvent() .done(),
.exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent("a") .moveToLastGateway()
.exclusiveGateway("xor") .sequenceFlowId("s1") .condition("$.foo < 5") .endEvent("a") .moveToLastGateway()