Dynamic Parallel Processing Question
Bratzler, Loren
loren.bratzler at nscorp.com
Wed Feb 19 09:32:15 EST 2014
I have a question about Dynamic Parallel Processing. I am wondering if it is possible to pass results back to the multi-line element in the main workflow container from the LINE element in the individual parallel tasks?
Here is my test example:
I created a simple test workflow with a Dynamic Parallel Block (this is the only step in the test workflow):
[cid:image005.jpg at 01CF2D55.799EBCF0]
The Parallel Block is designated as ParForEach because I want the approval tasks to go to all approvers at the same time:
[cid:image002.png at 01CF2D4E.28612D70]
The Parallel Processing for the block is based on the multi-line element TABLE_OF_APPROVERS:
[cid:image003.png at 01CF2D4E.28612D70]
The TABLE_OF_APPROVERS element is a structure that has an Agent, an Item Number, and a Result field:
[cid:image004.png at 01CF2D4E.28612D70]
I have set up the binding to pass the indexed multiline element of the workflow container to the LINE element in the step container. I also set up a return binding to pass the LINE element back to the indexed multiline element. This was what I was hoping would allow me to update the multiline element in the workflow container but it does not appear to be working:
[cid:image007.png at 01CF2D4F.14A88B10]
For the User Decision step within the block, I have defined the Agent to be the Approver from the LINE element:
[cid:image008.png at 01CF2D51.56F1ECD0]
And in the binding for the User Decision step, I am passing back _WI_RESULT to the User Decision field on the LINE element:
[cid:image009.png at 01CF2D51.56F1ECD0]
When I test this in SWUS, I define two entries in the TABLE_OF_APPROVERS multiline element:
[cid:image010.png at 01CF2D52.3E14C330]
The workflow runs and correctly creates two approval tasks as expected. One user Rejects and the other user Approves:
[cid:image011.png at 01CF2D52.3E14C330]
If I look at the containers for the individual Parallel Block steps, I can see that the LINE elements are getting updated with the User Decision:
[cid:image012.png at 01CF2D53.999D6BC0]
[cid:image013.png at 01CF2D53.999D6BC0]
But when I look at the main workflow container, the multiline element did not get updated with the User Decisions:
[cid:image014.png at 01CF2D54.5689D4D0]
So is it possible to do what I am trying to do here? Can I pass results from the individual parallel steps back to the multiline container element in the main workflow?
Loren Bratzler
Norfolk Southern Corporation
Email: loren.bratzler at nscorp.com<mailto:loren.bratzler at nscorp.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 11847 bytes
Desc: image002.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0011.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 9735 bytes
Desc: image003.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0012.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 6775 bytes
Desc: image004.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0013.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 28736 bytes
Desc: image007.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0014.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 19242 bytes
Desc: image008.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0015.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 24297 bytes
Desc: image009.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0016.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 18267 bytes
Desc: image010.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0017.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.png
Type: image/png
Size: 19059 bytes
Desc: image011.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0018.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.png
Type: image/png
Size: 11137 bytes
Desc: image012.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0019.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013.png
Type: image/png
Size: 11260 bytes
Desc: image013.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0020.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.png
Type: image/png
Size: 13317 bytes
Desc: image014.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0021.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 6984 bytes
Desc: image005.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20140219/435d2e3c/attachment-0001.jpg
More information about the SAP-WUG
mailing list