Skip to Content
avatar image
Former Member

Error handling in work flow

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 .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 25, 2011 at 07:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • May 24, 2011 at 04:30 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2011 at 07:06 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2011 at 10:44 PM

    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

    Add comment
    10|10000 characters needed characters exceeded