<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Mike,<BR>
Im gonna go out on a limb here, but, as far as I know, there is no such thing as a dynamic role, as current defined.&nbsp; A role is a group of entries in table AGR_USERS, grouped by the role id.&nbsp; These used to be called activity groups before SAP decided to "clarify" things by changing them to roles.&nbsp; In a way they&nbsp;have always been&nbsp;roles because this is the same table used by SAP security.&nbsp; Along with the change to&nbsp;"Roles" instead of&nbsp;Activity Groups, workflow roles became "Rules".&nbsp; &nbsp;I guess if a method dynamically populated your role prior to the instantiation of the work item, it might work, but it has to&nbsp;exist as&nbsp;a predefined list prior to instantiation of the work item.<BR>
<BR>As before, just don't assign any agents to the runtime agent assignment, or if the syntax checker objects, create a container element EMPTY_AGENT, type wfsyst-agent and make that the runtime agent. (EXPRESSION&nbsp;= EMPTY_AGENT).<BR>
&nbsp;<BR>
Please, somebody let me know if I am wrong.&nbsp; If so, I will begin looking for another line of work.<BR>
Ed<BR><BR>
&nbsp;<BR>
&nbsp;<BR>

<HR id=stopSpelling>
<BR>
&gt; Date: Thu, 1 Mar 2007 14:43:28 +0000<BR>&gt; Subject: RE: Can't use roles as agents in expressions?<BR>&gt; From: asap@workflowconnections.com<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Thanks Ed &amp; Ramki.<BR>&gt; It has to be a dynamic role so task assignments are not applicable. Client<BR>&gt; uses roles instead of rules.<BR>&gt; <BR>&gt; Workarounds are not an issue, I'm just wondering whether this shouldn't<BR>&gt; work as standard. Ramki has indicated that this indeed doesn't work on<BR>&gt; other 620 systems so at least I know it's not just our system.<BR>&gt; <BR>&gt; Cheers,<BR>&gt; Mike<BR>&gt; <BR>&gt; On Thu, March 1, 2007 1:36 pm, Edward Diehl wrote:<BR>&gt; &gt; Mike,<BR>&gt; &gt; The way you do that is to use the role to define the possible agents and<BR>&gt; &gt; then don't assign any agent at all in the task at run time. It will then<BR>&gt; &gt; go to all of the possible agents; i.e. your role.<BR>&gt; &gt;<BR>&gt; &gt; Hope that helps,<BR>&gt; &gt; Ed<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; To: sap-wug@mit.eduSubject: Re: Can't use roles as agents in<BR>&gt; &gt; expressions?Date: Thu, 1 Mar 2007 07:38:03 -0500From: workflow99@aol.com<BR>&gt; &gt; Mike,<BR>&gt; &gt;<BR>&gt; &gt; I tried the same a couple of years ago on a 6.20 system as well and my<BR>&gt; &gt; experience was the same. The agent type in WFSYST-AGENT can only be the<BR>&gt; &gt; standard HR org objects like Job, Position, Org Unit etc. Definitely Role<BR>&gt; &gt; and Rule do not work that way.<BR>&gt; &gt;<BR>&gt; &gt; Best Regards,Ramki Maley.<BR>&gt; &gt; -----Original Message-----From: asap@workflowconnections.comTo:<BR>&gt; &gt; sap-wug@mit.eduSent: Thu, 1 Mar 2007 5:43 AMSubject: Can't use roles as<BR>&gt; &gt; agents in expressions?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; G'Day,<BR>&gt; &gt; I just noticed that one cannot use a role in an agent expression. Can<BR>&gt; &gt; anyone confirm whether this is supposed to be so or if it's a bug? The<BR>&gt; &gt; docs are quiet on the matter.<BR>&gt; &gt;<BR>&gt; &gt; e.g. in the WF builder I can assign agent type role and assign ZMYROLE.<BR>&gt; &gt; Recipients are all users with role ZMYROLE, great.<BR>&gt; &gt;<BR>&gt; &gt; If I create a container element Agent type WFSYST-AGENT and assign<BR>&gt; &gt; AGZMYROLE, the WI ends up with nobody on our 6.20 system.<BR>&gt; &gt;<BR>&gt; &gt; Of course one can work around this by an extra step/attribute, but just<BR>&gt; &gt; wondering whether why I should have to.<BR>&gt; &gt; Cheers,<BR>&gt; &gt; Mike<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; AOL now offers free email to everyone. Find out more about what's free<BR>&gt; &gt; from AOL at AOL.com._______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Mike Pokraka<BR>&gt; Senior Consultant<BR>&gt; Workflow Connections<BR>&gt; Mobile: +44(0)7786 910855<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR></body>
</html>