Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: Workitem Generation Issue

$
0
0

So...the email which is generated has an incorrect work item ID in the URL which does not opens the right WD app for you ? Right?

 

If yes, You need to change the steps.

  1. Create a fork 2 of 2
  2. In one branch send the WI
  3. In the second branch, create an activity step to generate the URL
  4. But this step should start AFTER a minute (after the Dialog Step gets created in the parallel branch) - for that set the Requested Start to WI Creation date and time + 1 minute so that it starts a bit late (by that time the Decision Step would have been instantiated in the parallel branch)
  5. Then in the URL generation step - use the Main WF ID and call FM SAP_WAPI_GET_CHILD_WORKITEMS
    • You will get the WORKLIST parameter will all WI IDS within that WF, filter it where:
    • WORKLIST-WI_TYPE = 'W' - dialog Steps
    • WORKLIST-WI_RH_TASK = TSxxxxxxxx - the decision step task
    • WORKLIST-WI_STAT = 'READY' or 'STARTED'
    • You will get the Work item ID of your actual decision step which just got generated .... in WORKLIST-WI_ID
  6. Use it to create the URL
  7. In the same branch - send the email

 

Regards,

Modak


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>