Context :1. AEM is running on sp12 2. Workflows are not transient and we do not want to convert them to transient since we need the history. Problem : We have a workflow where we need to introduce process step and have below logic in it :if(custom field is valid){ proceed with usual flow;}else{ ...