[jboss-jira] [JBoss JIRA] (DROOLS-1168) notify property change
Sante Stanisci (JIRA)
issues at jboss.org
Wed May 18 05:21:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sante Stanisci reopened DROOLS-1168:
------------------------------------
briefly describe the problem: instead of using the modify in the then condition, I need to use a custom class which changes the value. Then to notify the news to call Drools update ($entity) but this is not enough and that the rule should take cascade does not fire.
I made the following test
//not notify
then
String[] fields = new String[]{"untMisVen"};
DroolsUtil.completeEntity($entity, fields, $untMis);
update($entity)
end
-----------------
//notify but it not possible use this
then
String[] fields = new String[]{"untMisVen"};
DroolsUtil.completeEntity($entity, fields, $untMis);
$entity.setUntMisVen($entity.getUntMisVen());
update($entity)
end
I note that in update operation bitmask in case 1 is at 0 contrary to case 2 where have a value.
I attach rules and classes
> notify property change
> ----------------------
>
> Key: DROOLS-1168
> URL: https://issues.jboss.org/browse/DROOLS-1168
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Affects Versions: 6.4.0.Final
> Environment: java 6, eclipse 4, windows 8.1
> Reporter: Sante Stanisci
> Assignee: Mario Fusco
> Priority: Critical
>
> nel then statement al posto di modify utilizzo una funzione custom per variare il campo. Questo non notifica il property change anche se la classe è annotata con @PropertyReactive
> Come posso notificare manualmente il cambiamento?
> utilizzo una stateless session
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list