Skip to Content
avatar image
Former Member

Workflow workitem generates twice

Dear All,

I am working on purchase order release workflow. Here I have mentioned rule and from rule am getting agents. For example, once agent XYZ approves that work item then it has to go agent ABC for next level. That is working fine. The problem here is agent XYZ again getting the workitem. Workflow generates workitems for ABC as well XYZ. But XYZ already approved the work item. If XYZ tries to approve it system shows - "Release outside field of responsibility " which is correct. But XYZ should not get the same work item.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 09, 2018 at 06:11 AM

    "I am fetching the agents based on logic"

    --> Correct your logic.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Florin,

      Could you share me a standard way to approach a Po release workflow for multiple levels, I accept the approach is not much standard one which I am working., Since its an urgent requirement I have developed this. Here I have used One

      1.Event step for PO Releasestepcreated. once triggered

      2.Form step - here I have mentioned one rule to get agents, a form is to approve, reject

      3.Activity step - to check final level approved or not

      4.Loop step - if final level = X then complete else from step 1 it will start.

      What is the best approach I can do the same po workflow

  • Apr 09, 2018 at 05:26 AM

    Hi Nandha,

    Create a new Table type field in container that will hold the agents that has been assigned till current task.

    Add the user into that table that has been approved it or agents in your level 1 depending upon your requirment.

    Assign that table type in the Exclude options in the task . this way XYZ won't get the second level of workitem.

    Hope it will help you.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Himanshu,

      Thaks for reply .I got the approach mentioned by you. But how it is happening like I have mentioned. Because In agent assignment from rules I am fetching the agents based on logic. Purpose of that rule function module is if I give po number as import parameter then the next level agent should give. Once approved by XYZ the function module correctly giving ABC only. But system generates one more work item for XYZ agent also. I want to solve this part only.