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