Hi there
I have a workflow that was created using Workflow Manager (i.e. not BPM). The flow is pretty simple - it's just a sequence of automated tasks that invoke Java server methods. For each automated check there is a reject flow that should be used in the event that the automated task detects some kind of error condition (e.g. metadata validation failed, publish content failed, etc).
My problem is that I don't know how to specify which flow to take (normal flow or reject flow). In BPM I can perform conditional logic against process variables to decide which flow to take. Using 'classic' workflows I don't have such an easy time. There doesn't appear to be a reject() method in IDfWorkitem so I tried to set the return_status using IDfWorkitem.completeEx() then evaluating this in the transition tab of the activity. This didn't work. My next thought is that I could set an attribute value then evaluate that in the transition tab but this sounds like an ugly hack - as it means that the doc/package can only exist in a single workflow (otherwise the attribute value could be overwritten).
Any ideas?
Mark