Hello guys,
I have a workflow which has a lot of nested if statements that are doing a whole load of operations based on other factors, now, you should be able to exit all of these if the boolean value for “complete” is true through a Signal method, and complete the workflow, which can happen at any time.
is there a way to have an overarching, higher level check on bool “complete” without needing to check(complete) it on every stage of the if statement.
Thanks!
public String process() {
check(paymentReceived);
if (conditionA) {
check(complete);
// code logic
if (conditionB) {
check(complete);
// code logic
if (conditionC) {
check(complete);
// code logic
etc...
}
}
}
return "FINAL RESULT";
}