<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rule Event</title><link>https://community.appian.com/discussions/f/process/10847/rule-event</link><description>Hi everyone, 
 
 I am using a rule Event to determine whether to continue the flow immediately 
 This is the way i do it 
 the rule it self return true/ false value 
 
 However, the following error occurs: 
 
 May I know why is that?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47510?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 06:11:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d020789b-a06d-4a97-82db-7f05bde79345</guid><dc:creator>Krishna Chaitanya</dc:creator><description>&lt;p&gt;hi joanneh&lt;br /&gt; in documentation mentioned that&lt;br /&gt; &amp;quot;Creating an expression in rule event that does not evaluate to true or false causes the expression to be automatically set to false&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47500?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 03:35:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:256fe012-a254-4496-8db6-d49f3be39547</guid><dc:creator>joanneh</dc:creator><description>Indeed, the real case in my situation should be&lt;br /&gt;
&lt;br /&gt;
=isusermemberofgroup(&lt;br /&gt;
&lt;br /&gt;
username:pv!user,&lt;br /&gt;
&lt;br /&gt;
groupId: 23&lt;br /&gt;
&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
What i am curious about is that why &amp;quot;the function with a pv!&amp;quot; doesnot work in a rule event&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47415?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 11:46:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2803ba31-f773-4d1a-8c1a-e74046679820</guid><dc:creator>annap</dc:creator><description>&lt;p&gt;Setup below expression in Rule Event &lt;br /&gt; isusermemberofgroup(pp!initiator, 23)&lt;br /&gt; &lt;br /&gt; It will work...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47407?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 10:27:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3129a30e-1ed6-4bea-8053-63fec2ff8f36</guid><dc:creator>sergeiz</dc:creator><description>Hello,&lt;br /&gt;
&lt;br /&gt;
First of all you don&amp;#39;t need to wrap boolean function into if(), you can use isUserMemberOfGroup() directly. It should work.&lt;br /&gt;
&lt;br /&gt;
The error you have because this node is not user input and loggedInUser() doesn&amp;#39;t return a correct value for isUserMemberOfGroup().&lt;br /&gt;
&lt;br /&gt;
As I understand your scenario should wait until some user will be added into a group in case he is not yet a member. In this case the user should be saved into a process variable and passed as a parameter into isUserMemberOfGroup(). The problem here is that the rule is reevaluated when a process variable changes and changing membership will not update process variable. So you need some additional pieces to have it reevaluated after membership changed.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47405?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:59:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38f87880-aa58-4eb0-b85c-e4e425a24457</guid><dc:creator>Krishna Chaitanya</dc:creator><description>&lt;p&gt;hi joanneh use script task before the rule event in that script task give your expression as output and save it in a Boolean process variable(pv!result),&lt;br /&gt; then in your rule event configure condition as result=true()&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/3581.1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/3581.1.png" alt=" " /&gt;&lt;/a&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/3581.2.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/3581.2.png" alt=" " /&gt;&lt;/a&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/3.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/3.png" alt=" " /&gt;&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47404?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:53:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2c63925-f2d3-458c-a24d-9fc49a1a8de4</guid><dc:creator>santoshd378</dc:creator><description>Then instead of using rule event, I suggest to use script task.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47403?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:50:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:427c7bf1-0e37-4fb1-a16a-1c71015ca859</guid><dc:creator>joanneh</dc:creator><description>Thanks. I have checked it before. &lt;br /&gt;
&lt;br /&gt;
What confuse me is it doesn&amp;#39;t event work for a simple rule expression like this....&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47402?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:49:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3c5e174-fb1b-4e56-9b7c-42669426c4a2</guid><dc:creator>joanneh</dc:creator><description>&lt;p&gt;I wish to use your way too...&lt;/p&gt;
&lt;p&gt;However, the real case in my situation should be&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#0000ff;"&gt;=isusermemberofgroup(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#0000ff;"&gt;username:pv!user,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#0000ff;"&gt;groupId: 23&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#0000ff;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#000000;"&gt;where the pv!user is keep updating within the process model.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#000000;"&gt;If I have to save the function result beforehead, I have to create a loop until the function&amp;nbsp;result returns true;&amp;nbsp;Unlimited l&lt;/span&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#000000;"&gt;ooping itself may induces another problem...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47401?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:40:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d21f476-2fab-4644-81a8-6bb023198a5c</guid><dc:creator>santoshd378</dc:creator><description>For rule event condition to work store the value returned by this condition  &lt;br /&gt;
isusermemberofgroup(&lt;br /&gt;
  username:loggedInUser(),&lt;br /&gt;
   groupId: 23&lt;br /&gt;
 )&lt;br /&gt;
 in a process variable, Then select the operator as equal to(=) and give the value as true in the text-entry field.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47400?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:39:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb392ff4-284c-4c42-893a-3918400da3d0</guid><dc:creator>joanneh</dc:creator><description>Seems like It is not working either....&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47399?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:36:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a2e5fbc-b8c3-46fd-9354-97eae15b868f</guid><dc:creator>Krishna Chaitanya</dc:creator><description>&lt;p&gt;if(&lt;br /&gt; isusermemberofgroup(&lt;br /&gt; username:pp!initiator,&lt;br /&gt; groupId: 23&lt;br /&gt; ),&lt;br /&gt; true,&lt;br /&gt; false&lt;br /&gt; )&lt;br /&gt; once try with this Expression rule,replace &amp;nbsp;loggedInUser() with&amp;nbsp;pp!initiator&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47398?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:34:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:874a4967-178e-4ec6-902a-1e3408e7acbb</guid><dc:creator>sravanis</dc:creator><description>hi jaonneh,&lt;br /&gt;
&lt;br /&gt;
please check the below link:&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.2/Rule_Event.html"&gt;docs.appian.com/.../Rule_Event.html&lt;/a&gt;&lt;br /&gt;
it may be helpful to configure the rule event.&lt;br /&gt;
&lt;br /&gt;
thanks,&lt;br /&gt;
sravanis.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47397?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:32:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fd77321-89d5-466f-8c93-854801d4d4e3</guid><dc:creator>joanneh</dc:creator><description>Dear Santosh Kumar D,&lt;br /&gt;
&lt;br /&gt;
Thanks for helping, this is the way I do it:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;if(isusermemberofgroup(  username:loggedInUser(),  groupId:23),true,false)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and when I use a script task node to check the returned value from the above rule, it returns &amp;quot;true&amp;quot; as boolean; but it does not work in the rule Event node&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Event</title><link>https://community.appian.com/thread/47396?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 06:25:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bd04912-44c4-498f-b0fa-aff8b65a6f35</guid><dc:creator>santoshd378</dc:creator><description>Hi joanneh,&lt;br /&gt;
&lt;br /&gt;
The rule event evaluates to true iff the condition you specified to be true, then the flow be continued in the process flow.&lt;br /&gt;
With your inputs(Screenshots) it&amp;#39;s harder to say what is wrong in the rule. Can you provide the configure screenshot??&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>