<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Mike,<BR>
The way you do that is to use the role to define the possible agents and then don't assign any agent at all in the task at run time.&nbsp; It will then go to all of the possible agents; i.e. your role.<BR>
&nbsp;<BR>
Hope that helps,<BR>
Ed<BR><BR><BR><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px">
<HR id=EC_stopSpelling>
To: sap-wug@mit.edu<BR>Subject: Re: Can't use roles as agents in expressions?<BR>Date: Thu, 1 Mar 2007 07:38:03 -0500<BR>From: workflow99@aol.com<BR><BR>
<DIV>Mike,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;tried the same a couple of years ago on a 6.20 system as well and my experience was the same. The agent type in <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>WFSYST-AGENT</SPAN></SPAN>&nbsp;<SPAN style="DISPLAY: inline-block"></SPAN>can only be the standard <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>HR</SPAN></SPAN> <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>org</SPAN></SPAN> objects like Job, Position, <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>Org</SPAN></SPAN> Unit etc. Definitely Role and Rule do not work that way.</DIV>
<DIV>&nbsp;</DIV>
<DIV style="CLEAR: both">Best Regards,<BR><SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>Ramki</SPAN></SPAN> <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>Maley</SPAN></SPAN>.</DIV>
<DIV>&nbsp;</DIV>&nbsp;<BR>-----Original Message-----<BR>From: asap@workflowconnections.com<BR>To: sap-wug@mit.edu<BR>Sent: Thu, 1 Mar 2007 5:43 AM<BR>Subject: Can't use roles as agents in expressions?<BR><BR>
<STYLE>
.ExternalClass .EC_AOLPlainTextBody
{font-family:Tahoma, Verdana, Arial, Sans-Serif;font-size:12px;color:#000;background-color:#fff;}
.ExternalClass .EC_AOLPlainTextBody pre
{font-size:9pt;}
.ExternalClass .EC_AOLInlineAttachment
{;}
.ExternalClass .EC_AOLAttachmentHeader
{font:11px arial;border:1px solid #7DA8D4;background:#F9F9F9;}
.ExternalClass .EC_AOLAttachmentHeader .Title
{font:11px arial;background:#B5DDFA;padding:3px 3px 3px 3px;}
.ExternalClass .EC_AOLAttachmentHeader .FieldLabel
{font:11px arial;color:#000000;padding:1px 10px 1px 9px;background:#F9F9F9;}
.ExternalClass .EC_AOLAttachmentHeader .FieldValue
{font:11px arial;color:#000000;background:#F9F9F9;}
.ExternalClass .EC_AOLAttachmentHeader a, .ExternalClass .EC_AOLImage a
{color:#2864B4;text-decoration:none;}
.ExternalClass .EC_AOLAttachmentHeader a:hover, .ExternalClass .EC_AOLImage a:hover
{color:#2864B4;text-decoration:underline;}
.ExternalClass .EC_AOLWebSuiteCompose .AOLPicturesFullSizeLink, .ExternalClass .EC_AOLWebSuite .AOLPicturesFullSizeLink
{height:1px;width:1px;overflow:hidden;}
.ExternalClass
{background-color:white;font-family:'Verdana';font-size:10pt;border:0px;}
.ExternalClass .EC_AOLWebSuiteCompose p
{padding:0px;}
.ExternalClass EC_img.managedImg
{width:0px;height:0px;}
.ExternalClass EC_img.placeholder
{width:275px;height:206px;background:#F4F4F4 center center no-repeat;border:1px solid #DADAD6 !important;}
</STYLE>

<DIV class=EC_AOLPlainTextBody id=EC_AOLMsgPart_0_44b05a31-101e-4e26-a286-fd95e82d864e><PRE><TT><SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>G'Day</SPAN></SPAN>,
I just noticed that one cannot use a role in an agent expression. Can
anyone confirm whether this is supposed to be so or if it's a bug? The
<SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>docs</SPAN></SPAN> are quiet on the matter.

e.g. in the <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>WF</SPAN></SPAN> builder I can assign agent type role and assign <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>ZMYROLE</SPAN></SPAN>.
Recipients are all users with role <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>ZMYROLE</SPAN></SPAN>, great.

If I create a container element Agent type <SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>WFSYST-AGENT</SPAN></SPAN> and assign
<SPAN class=EC_correction id=EC_><SPAN class=EC_correction id=EC_>AGZMYROLE</SPAN></SPAN>, the WI ends up with nobody on our 6.20 system.

Of course one can work around this by an extra step/attribute, but just
wondering whether why I should have to.
Cheers,
Mike


_______________________________________________
SAP-WUG mailing list
<A>SAP-WUG@mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
</TT></PRE></DIV>
<DIV class=EC_AOLPromoFooter>
<HR>
AOL now offers free email to everyone. Find out more about what's free from AOL at <A href="http://pr.atwola.com/promoclk/1615326657x4311227241x4298082137/aol?redir=http://www.aol.com" target=_blank><B>AOL.com</B></A>.<BR></DIV></BLOCKQUOTE></body>
</html>