[jboss-jira] [JBoss JIRA] (DROOLS-1168) notify property change
Mario Fusco (JIRA)
issues at jboss.org
Tue May 10 06:33:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-1168.
---------------------------------
Resolution: Rejected
Please write your ticket in English so they could be accessible to everybody. Also if you are not reporting a bug but asking how to do something it would be better to post your question on drools mailing list instead of opening a ticket on the issue tracking.
To answer your question you can annotate the method you're calling on your bean with the @Modifies annotation as in this example https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/PropertyReactivityTest.java#L1157
In this way it is possible to notify the engine that when the setName() method is called it also affects the "fullName" property.
> 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