You could check the contents of the expression in an earlier Condition Step - where you evaluate your expression for having some content. If there are no lines in your expression, then use a process control step to throw an exception.
Mind you, I have not used Process Control to throw exceptions, so your mileage may vary. But it is *always* a good idea to check and ensure you have valid agents before launching a dialog task!
Sue
Do you specifically need it to go into error? I don't think this is necessarily a good thing to rely on, as there are many other ways an item can end up without agents.
For this reason there are reports (SWI2_ADM1) you should be running at least daily which will list these types of issues, regardless if you have any special handling in place. Perhaps these are sufficient for your requirement?
Add comment