Advance With Dialog on Asynchronous Task

Bratzler, Loren Loren.Bratzler at nscorp.com
Thu Jun 25 13:58:44 EDT 2015


Hello Wuggers,

Hope someone can help me here:

I have a requirement in a workflow to have a two-part approval process for the Incoming Invoice (BUS2081) business object.  The first part of the approval process is to have the approver open the document in Edit mode and review and make revisions to a restricted number of fields.  Once their review is done, we want them to click "Save as Complete" and then automatically advance to the second part of the approval process where the user decision (approve or reject buttons) appear.

For the first step of the process, I am using the standard EDIT method of the object and when I define my task for using this method, I assign the terminating event "COMPLETED" so that the task will only complete when the user clicks "Save as Complete".

The problem is that the EDIT method for this object is asynchronous:

[cid:image001.png at 01D0AF4E.2E145A20]

So the "advance with dialog" option does not work to automatically advance to the user decision step where the approve/reject buttons will appear.

I tried to create my own custom synchronous method in the object that was a copy of the standard method.  I then created a new task to execute this new method and defined the same terminating event.  However, the problem with that is when I insert the task into the workflow, there are two outcome paths.  One path is for the terminating event I assigned but the other path is the normal "advance" path.  This causes the workflow to advance to the user decision step when we don't want it to.  We only want it to advance when they click "save as complete" and raise the COMPLETED event.  With this configuration, the step advances when they click other options on the screen like "back", "exit" or "cancel".

[cid:image002.png at 01D0AF4E.2E145A20]

The workflow builder will not allow me to deactivate the "Step executed" outcome for the step:

[cid:image003.png at 01D0AF4E.2E145A20]

Error message that occurs when you try to deactivate this outcome:

[cid:image004.png at 01D0AF4E.974AB570]

So I'm trying to figure out is there some way for me to get around these limitations?

Loren Bratzler
Norfolk Southern Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/b55bf1fb/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16930 bytes
Desc: image001.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/b55bf1fb/attachment-0004.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 12739 bytes
Desc: image002.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/b55bf1fb/attachment-0005.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 18717 bytes
Desc: image003.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/b55bf1fb/attachment-0006.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 22027 bytes
Desc: image004.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/b55bf1fb/attachment-0007.png


More information about the SAP-WUG mailing list