Multiple agents per one work item in workflow

May, Kevin KMay at petro-canada.ca
Wed May 17 16:00:34 EDT 2006


Hi Gavin, OK here's the situation.  I've got a step in a workflow which
is has a multiline element called 'REVIEWERS'.  'REVIEWERS' contains a
list of 'n' amount of R/3 user ids, lets say for example 3.  In the
agent assignemnent of the step I have
'&REVIEWERS[&_WF_PARFOREACH_INDEX&]&', in the 'Other' tab of the step I
have 'REVIEWERS' in place.  When the step executes it sends off the same
work item to each of the 3 agents.  Each instance of the work item has
its own work item id, as expeected.  The task assigned to the step
contains a call to a custom method of a custom object.  This method
calls a BSP.  From the BSP the user is able to complete their task which
is done by raising a custom event 'REVIEWED' from the same object.  This
event is a terminating event of the task.  I think this is where the
problem lies because the element is '_WI_OBJECT_ID' instead of the work
item id.   What I need is for the work item to be completed by all
designated agents before continuing to the next step.  What do you
think? 

Thanks much,

Kevin

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Gavin Mooney
Sent: Wednesday, May 17, 2006 3:19 PM
To: SAP Workflow Users' Group
Subject: Re: Multiple agents per one work item in workflow


Kevin,

This definitely IS possible without using a sub-workflow, I have a
workflow in front of me that does it. What you described sounds exactly
right.

When you look in the workflow log, is a separate work item (i.e. a
separate line in the log) being generated for each of the entries in the
table of user IDs? The common problem is that several work items are
generated, all of which go to several users. In your case I'm not clear
on what is happening - it sounds like only one work item is being
created and it being sent to multiple users. You could always try the
old trick of removing the step and then putting it in again.....

Regards,
Gavin

2006/5/17, May, Kevin <KMay at petro-canada.ca>:
>
>
> Thanks, to you both.  It's unfortunate because it looked like I had 
> multiple agents for the same work item but each had their own work 
> item id.  It was so close and it seems like such a simple thing.  
> What's worse is that the 'Practical Workflow for SAP' book simply says

> in order to achieve this put the multiline element in the 'Other' tab 
> and then place the mulitiline element index in the agent assignment of

> the step and off you go.
>
> Thanks again,
>
> Kevin
>
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On 
> Behalf Of Dave Weston
> Sent: Wednesday, May 17, 2006 1:31 PM
> To: SAP Workflow Users' Group
> Subject: RE: Multiple agents per one work item in workflow
>
>
> Yes there has to be a sub workflow, with the task/step in the 
> subworkflow. I did this last year and it must be in a subworkflow, 
> especially if you want to return any check/approval results back to 
> the main flow.
>
> Dave
>
>  ________________________________
>  From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On 
> Behalf Of Adao-Cruz, Miguel
> Sent: Wednesday, May 17, 2006 12:00 PM
> To: SAP Workflow Users' Group
> Subject: RE: Multiple agents per one work item in workflow
>
>
>
>
> Hi,
>
> I went through the same problem some projects ago but I don't remember

> how I solved it. If your step where you put the mutiline element is a 
> task, try to put this task in a sub-workflow and do the same settings 
> at the sub-workflow level. It might solve the problem.
>
> Cheers
>
>
>
> ______________________________________________________________________
> _____
> Miguel Adao-Cruz | Capgemini | London
> Technology Services
> SAP Application Architect
>
> T.+44-870-238-2927 | Int.700 2927 | www.capgemini.com
>
> Join the Collaborative Business Experience 
> ______________________________________________________________________
> _____
>
>  ________________________________
>  From: sap-wug-bounces at mit.edu on behalf of May, Kevin
> Sent: Wed 17/05/2006 16:41
> To: SAP Workflow Users' Group
> Subject: RE: Multiple agents per one work item in workflow
>
>
>
>
> Hi Miguel, the step is creating one workitem with multiple workitem 
> ids being sent uniquely to each agent identified in the multiline 
> element.  This is working as I would expect dynamic parallel 
> processing to work.  However when the first agent reserves the 
> workitem it is then removed from all other agents.  I thought that 
> using the 'Other' tab would prevent this from happening.
>
> Thanks,
>
> Kevin
>
>
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On 
> Behalf Of Adao-Cruz, Miguel
> Sent: Wednesday, May 17, 2006 11:34 AM
> To: SAP Workflow Users' Group
> Subject: RE: Multiple agents per one work item in workflow
>
>
>
> Hi,
>
> You say "the workitem"! Is your workflow creating multiple workitems 
> with one reviewer each time or ONE workitem with all the reviewers?
>
> Cheers
>
>
>
> ______________________________________________________________________
> _____
> Miguel Adao-Cruz | Capgemini | London
> Technology Services
> SAP Application Architect
>
> T.+44-870-238-2927 | Int.700 2927 | www.capgemini.com
>
> Join the Collaborative Business Experience 
> ______________________________________________________________________
> _____
>
>  ________________________________
>  From: sap-wug-bounces at mit.edu on behalf of May, Kevin
> Sent: Wed 17/05/2006 16:12
> To: sap-wug at mit.edu
> Subject: Multiple agents per one work item in workflow
>
>
>
>
>
>
>
> Hi, I've got a workflow multiline element which contains user id's. 
> Currently all the agents in the multiline element are being sent the 
> workitem, however the first agent to execute the workitem removes it 
> from the other agent's inboxes. I've got the multiline element in the 
> 'Other' tab of the step and I've tried using the multiline element 
> index in the agent assignment of the step, i.e. 
> '&REVIEWERS[&_WF_PARFOREACH_INDEX&]&'. What am I forgetting?
>
> Thanks in advance,
>
> Kevin
>
>
>  ________________________________
>
>
> This email communication is intended as a private communication for 
> the sole use of the primary addressee and those individuals listed for

> copies in the original message. The information contained in this 
> email is private and confidential and If you are not an intended 
> recipient you are hereby notified that copying, forwarding or other 
> dissemination or distribution of this communication by any means is 
> prohibited.  If you are not specifically authorized to receive this 
> email and if you believe that you received it in error please notify 
> the original sender immediately.  We honour similar requests relating 
> to the privacy of email communications.
>
>
>
>
> Cette communication par courrier  lectronique est une communication 
> priv e
> l'usage exclusif du destinataire principal ainsi que des personnes
dont les
> noms figurent en copie.  Les renseignements contenus dans ce courriel
sont
> confidentiels et si vous n' tes pas le destinataire pr vu, vous  tes
avis ,
> par les pr sentes que toute reproduction, transfert ou autre forme de
> diffusion de cette communication par quelque moyen que ce soit est
> interdite.  Si vous n' tes pas sp cifiquement autoris    recevoir ce
> courriel ou si vous croyez l'avoir re u par erreur, veuillez en aviser
> l'exp diteur original imm diatement.  Nous respectons les demandes
> similaires qui touchent la confidentialit  des communications par
courrier
>  lectronique.
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
 
--------------------------------------------------------

  
This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and If you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited.  If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately.  We honour similar requests relating to the privacy of email communications.
 
Cette communication par courrier electronique est une communication privee a l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie.  Les renseignements contenus dans ce courriel sont confidentiels et si vous n'etes pas le destinataire prevu, vous etes avise, par les presentes que toute reproduction, transfert ou autre forme de diffusion de cette communication par quelque moyen que ce soit est interdite.  Si vous n'etes pas specifiquement autorise a recevoir ce courriel ou si vous croyez l'avoir recu par erreur, veuillez en aviser l'expediteur original immediatement.  Nous respectons les demandes similaires qui touchent la confidentialite des communications par courrier electronique.




More information about the SAP-WUG mailing list