Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Informer : replace update with modify

  • Loading branch information...
commit 5607f0228d5d6dd067926886774b93316bbdc37a 1 parent ae13a41
Davide Sottara sotty authored
24 drools-informer/drools-informer-core/src/main/resources/org/drools/informer/ReadOnly.drl
View
@@ -38,8 +38,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.addPresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ addPresentationStyle("readonly-inherited");
+ }
end
rule "propagate readonly from group to question"
@@ -54,8 +55,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.addPresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ addPresentationStyle("readonly-inherited");
+ }
end
@@ -72,8 +74,9 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.removePresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ removePresentationStyle("readonly-inherited");
+ }
end
rule "remove readonly from group to question"
@@ -88,14 +91,11 @@ when
stylesList contains "readonly" || stylesList contains "readonly-inherited" )
)
then
- $item.removePresentationStyle("readonly-inherited");
- update($item);
+ modify ( $item ) {
+ removePresentationStyle("readonly-inherited");
+ }
end
-
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.