<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You need to alter the parser and the Extractor api, you also need to be
able to deal with ShadowFacts, where we need to know the previous and
current value.Further to that nested value should not change without
notifying the parent fact in the network - i.e. correct network state
must always been maintained. It's a complex area, we are looking at a
work around that allows this declarative language, but rewrites it as
an eval - so you don't get the performance advantages - but it's a
quick work around for now.<br>
<br>
Mark<br>
Anirvan Majumdar wrote:
<blockquote
 cite="mid:2cb74dd90705140626t3759ab2es14e36fb52b85b8c3@mail.gmail.com"
 type="cite"><br>
Is there any way to circumvent the constraint that only <span
 style="font-style: italic;">getter </span>methods can be called from
the asserted bean object? If the input data is dynamic in nature and
instead I capture it in a HashMap, then how can I retrieve specific <span
 style="font-style: italic;">key-value </span>pairs in the "when"
block of a Rule?<br>
  <br>
Basically, I need to utilize a method, in the bean, which would have a
definition like:<br>
  <br>
&lt;code&gt;<br>
public String getValue(String sKey){
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; return (String)hmpData.get(sKey);<br>
  <br>
}<br>
&lt;/code&gt;<br>
  <br>
Can this <span style="font-style: italic;">getValue</span> method be
accessed by the "when" block? If no, then can someone let me know which
class in the source I might have to tweak to extract a similar behavior
from the engine?
  <br>
  <br>
Thanks a lot!<br>
Anirvan<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>