private String getSplitId(List<Execution> newExecutions) { if (newExecutions != null && newExecutions.size() > 0) { return newExecutions.get(0).getSystemContext().getSplitId(); } throw new RuntimeException("Split executions list is null or empty!!!"); } }
private Long findExecutionId(List<Execution> executions, String splitId) { for (Execution execution : executions) { if (execution.getSystemContext().getSplitId().equals(splitId)) { return execution.getExecutionId(); } } return null; }
private Long findExecutionId(List<Execution> executions, String splitId) { for (Execution execution : executions) { if (execution.getSystemContext().getSplitId().equals(splitId)) { return execution.getExecutionId(); } } return null; }
List<String> splitIds = extract(executions, on(Execution.class).getSystemContext().getSplitId());
List<String> splitIds = extract(executions, on(Execution.class).getSystemContext().getSplitId());
@Override public FinishedBranch convert(Execution execution) { boolean isBranchCancelled = ExecutionStatus.CANCELED.equals(execution.getSystemContext().getFlowTerminationType()); return new FinishedBranch(execution.getExecutionId().toString(), execution.getSystemContext().getBranchId(), execution.getSystemContext().getSplitId(), execution.getSystemContext().getStepErrorKey(), new BranchContexts(isBranchCancelled, execution.getContexts(), execution.getSystemContext())); } };
@Override public FinishedBranch convert(Execution execution) { boolean isBranchCancelled = ExecutionStatus.CANCELED.equals(execution.getSystemContext().getFlowTerminationType()); return new FinishedBranch(execution.getExecutionId().toString(), execution.getSystemContext().getBranchId(), execution.getSystemContext().getSplitId(), execution.getSystemContext().getStepErrorKey(), new BranchContexts(isBranchCancelled, execution.getContexts(), execution.getSystemContext())); } };