cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in work flow

Former Member
0 Kudos

Hi experts,

I need to do Error handling in work flow If a workflow recipient cannot be identified, an email should be sent to a distribution list with respective company code . can you please help this how I need to handle .

Accepted Solutions (1)

Accepted Solutions (1)

former_member186746
Active Contributor
0 Kudos

Just create a rule (PFAC) based on company code and use this one as recipient when you can't find an agent.

However, you should also answer why it is that agents cannot be determined, maybe your organizational structure is in dire need of correction.

Kind regards, Rob Dielemans

Answers (3)

Answers (3)

former_member185167
Active Contributor
0 Kudos

Hello,

"If a workflow recipient cannot be identified, an email should be sent to a distribution list "

I would determine the agents using a separate (background) step beforehand and then test the results. If they are empty, then send the email (taking account of the company code). If not empty, then execute the workflow step with the resulting agents.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Ganesh,

Probably you wrote the agent determination logic in the method of business object, right?

If so, in the method there is a option called 'Exception'. You can define the exception and in the method you can raise the exception if no agent found.

When you call this method in Task, it ll create a separate outcome. In this outcome you can define the mail step to notify the concern person.

Also the easy way is, the approvers are stored in the workflow container. You can set the condition step to check whether the container has any valid value. If the container is empty, then you can define the mail step.

Thanks,

Vijay.

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Are you referring to agent assignment in a step. If the agent cannot be determined then maybe look at using a rule with responsibilities. You could maintain a responsibility to assign the work item to certain users if no other users are determined.

The user would receive a the actual work item instead of an email.

Regards,

Eddie