cancel
Showing results for 
Search instead for 
Did you mean: 

WF - end wf when agent determination failed

Former Member
0 Kudos

Hi ,

I am new to WF , and i have the following problem :

we have an agent determination via expression , and there are several possible agents in the task possible agents . when there is no overlap between the possible agents and the agents in the expression , the task is assgined to all possible agents.

I want the task to end in error in this case.

I know how to do it with agent assignment via rule ,

is there a way to do the same with agent assignment via expression ?

Thanks, Nirit .

Accepted Solutions (0)

Answers (2)

Answers (2)

pokrakam
Active Contributor
0 Kudos

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?

keohanster
Active Contributor
0 Kudos

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