David,<div>Looks like you solution should work. But ,IMHO, the code doesn't get better: initially the rule was hardcoded by its primary id(object id). Now we have it in a way hardcoded by its secondary id(name) which is formally not unique. Isn't it less safe?</div>
<div>So , I'm not sure what's the requirement behind this idea , but if I were you I'd try to somehow rethink the approach to avoid identifying rules by name. <span></span></div><div>Best regards ,</div><div>Egor</div>
<div><br>On Sunday, December 2, 2012, David Cooper wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:Verdana"><span style="font-size:12px"><p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        HI Workflow Developers,</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px;min-height:8pt;min-height:8pt">
         </p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        I know the usual practice is to hard code the rule object id when using the function module RH_GET_ACTORS.</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px;min-height:8pt;min-height:8pt">
         </p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        But there has to be a way to determine what the OBJECT ID is for the rule using the text name that has been give.</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px;min-height:8pt;min-height:8pt">
         </p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Can anyone supply the function module or table to use?</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px;min-height:8pt;min-height:8pt">
         </p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Pseudo Code logic for this is</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Set Rule_Name as 'ZFI_RULE001'</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Get Object Id Using Rule_Name</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Populate Rule Container</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Get Actors using Object Id and Container</p>
<p style="margin:0px;padding:0px;border:0px;outline:0px;font-family:arial,helvetica,sans-serif;vertical-align:baseline;background-color:rgb(248,248,248);color:rgb(51,51,51);line-height:15.600000381469727px">
        Return Actors to Workflow</p>
<br>
<span><span style="font-family:Verdana;font-size:12px">Regards<br>
<br>
David Cooper<br>
<a href="javascript:_e({}, 'cvml', 'David.G.Cooper@mail.com');" target="_blank">David.G.Cooper@mail.com</a></span></span></span></span>
</blockquote></div><br><br>-- <br>Egor Malov<br>