[rules-users] modify facts problem

Vikram Pancholi vikram.pancholi at gmail.com
Fri Aug 28 02:20:58 EDT 2009


Hi,
   Any clues on the below mentioned problem. Some more information on it ,
  I am using 5.0.1 version of the API and core.

  After placing debugging logger i found out the following information,
   1) After I modify the user object in rule consequence , it raises the
object modified event but after some time.
   2) In the meanwhile the  Milestone that was waiting for the constraint
value ! = 1 gets passed ,,activaation created event
   3)  after milestone in the action node(where i m logging the value it
still prints 1 ..original unmodified value.
   4) After this i see the objectmodifiedevent being raised (the one the
stated above in point 1).

   I have also placed lock_on_active on rule, but still it raises the event
afterwards and other activations are using this object with an unmodified
value.

Please let me know if you know of any fix on this problem.

Thanks and Regards
Vikram Pancholi

On Thu, Aug 27, 2009 at 7:59 PM, Vikram Pancholi
<vikram.pancholi at gmail.com>wrote:

> Hi,
>   I am having problem about modifying certain fact.
>
>   For example
>   1) I have User status when inserted  set to value "1".
>   2) in the modify in a rule block i m changing this  to "5".
>   3)Now i have a flow where i have a wait which waits this user status is
> not value "1".
>      After the rule is fired ans the status is changed to false, in the
> next step i am checking this status of user status in an XOR split
> constraints
>     but i still get the status in the constraint as "1". I have got no
> clues whts going on. I tried printing this value in the getting the objects
> using classobjectfilter and then specyfing the class again, the value is
> still shown as "1". I am very much confused about this. Is this some effect
> of Shadow facts.
>   awaiting your response.
>
> Regards
> Vikram Pancholi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090828/79fa782f/attachment.html 


More information about the rules-users mailing list