Yes, EventIF is what I am using. Where did you get the DRUG from? I do not have any enum in the drop down next to the EventType.<br><br>The list i have includes: name, values(), this, etc.<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 5:38 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If I create a rule as follows it appears OK:-<br><br>There is an EventIF with: eventType equal to EventType.DRUG<br>
<br>Created DRL:-<br><br><table><tbody><tr><td><span style="color:grey">1.</span></td><td><span style="color:green">|</span></td>
<td><span style="color:red">rule</span> <span style="color:green">"Overlapping Test"</span></td></tr><tr><td><span style="color:grey">2.</span></td><td><span style="color:green">|</span></td><td> <span style="color:red">dialect</span> <span style="color:green">"mvel"</span></td>
</tr><tr><td><span style="color:grey">3.</span></td><td><span style="color:green">|</span></td><td> <span style="color:red">when</span></td></tr><tr><td><span style="color:grey">4.</span></td><td><span style="color:green">|</span></td>
<td> EventIF( eventType == EventType.DRUG )</td></tr><tr><td><span style="color:grey">5.</span></td><td><span style="color:green">|</span></td><td> <span style="color:red">then</span></td></tr><tr><td><span style="color:grey">6.</span></td>
<td><span style="color:green">|</span></td><td><span style="color:red"><span style="color:red">end</span></span></td></tr></tbody></table><br>I did not see a Fact Type "Event".<div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote">On 18 April 2012 22:28, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I opened the "Overlapping Test" rule and it has no content\definition.<br><br>Am I missing something?<div>
<div><br><br><div class="gmail_quote">On 18 April 2012 22:12, Sean Su <span dir="ltr"><<a href="mailto:sean.x.su@gmail.com" target="_blank">sean.x.su@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yes, it has been uploaded onto the repository, though there are some examples (from Drools) in the jar which I do not need to evaluate.<br>
<br>Attached is the exported repository. The rule is in the ...rules.overlappingrules package.<br>
<br>Thanks<span><font color="#888888"><br><br>Sean</font></span><div><div><br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 5:09 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p>Yes, just the repository export will be fine. Provided you have uploaded the model JAR into Guvnor as a POJO model it will be (if you haven't try that first!) </p>
<p>sent on the move</p><div><div>
<p>On 18 Apr 2012 22:04, "Sean Su" <<a href="mailto:sean.x.su@gmail.com" target="_blank">sean.x.su@gmail.com</a>> wrote:<br type="attribution"></p><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I am evaluating 5.3.final.<br><br>No I am not using DSL yet but plan to do so if we can pass the evaluation phase.<br><br>Would the zip file exported from Guvnor (plus the jar POJO model) be good enough? If yes, I can send over.<br>
<br>thanks<br><br>Sean<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 4:54 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p>Yes, but perhaps not specifically for your use-case.</p>
<p>What version of Guvnor are you using? I assume you are using a DSL? Can you provide a self-contained repository export?</p>
<p>sent on the move</p>
<p></p><div><div>On 18 Apr 2012 21:36, "Sean Su" <<a href="mailto:sean.x.su@gmail.com" target="_blank">sean.x.su@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>
Has anyone here successfully used Enum in the guided editor in Guvnor?<br><br>I am trying to build a patter with the following pseudo condition but could not get the Enum list displayed in the drop down of the Enum:<br><br>
"There is an Event with Event.type (Enum EventType) equal to EventType.someType".<br><br>Here, someType is one of the enum defined in EventType.java.<br><br>Event.java has getType() method returns EventType.<br>
<br>Everything seems working fine, exception in the drop down of EventType, there is no enum defined. It only has the standard API from Enum listed there.<br><br>Any input is appreciated.<br><br>Thanks<br><br>Sean<br>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the Force are they." -Yoda<br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the Force are they." -Yoda<br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the Force are they." -Yoda<br>