Advance With Dialog on Asynchronous Task
Ramki Maley
rmaley at erpworkflow.com
Thu Jun 25 18:02:05 EDT 2015
Loren,
Instead of a terminating event for your custom EDIT method, Try issuing
an EXIT_CANCELLED if the document is not 'COMPLETE'. This will keep the
workitem from completing.
Cheers,
Ramki.
On 6/25/15, 1:58 PM, Bratzler, Loren wrote:
>
> 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:
>
> 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".
>
> The workflow builder will not allow me to deactivate the "Step
> executed" outcome for the step:
>
> Error message that occurs when you try to deactivate this outcome:
>
> So I'm trying to figure out is there some way for me to get around
> these limitations?
>
> Loren Bratzler
>
> Norfolk Southern Corporation
>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/a8087811/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16930 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/a8087811/attachment-0004.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12739 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/a8087811/attachment-0005.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 18717 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/a8087811/attachment-0006.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 22027 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/a8087811/attachment-0007.png
More information about the SAP-WUG
mailing list