Custom Workflows
Hi,
I am creating custom workflow for requirement.I have created a new process step for meta data validation. Based on the output of process step i have to decide the flow.
If the validation passed it need to go to different user
Else it need to send back to assigner.
For this I used below code snippet
if(custTag.getTitle().equalsIgnoreCase("Summer")){ //For testing I added validation based on tag title value n = jcrSession.getNode(path); n.setProperty("validateFlag", true); jcrSession.save(); } List<Route> routeList = arg1.getRoutes(arg0, false); if(!validateFlag) //default value is false { arg1.complete(arg0, routeList.get(0)); } else { arg1.complete(arg0, routeList.get(1)); }
I added the validate Flag property to asset.But the value is not getting overridden if the condition satisfies. Please guide me how to proceed with this
Thanks!
Kirithi