mariofusco commented on code in PR #5639:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5639#discussion_r1436833149


##########
drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/Consequence.java:
##########
@@ -162,6 +163,8 @@ public MethodCallExpr createCall(String consequenceString, 
BlockStmt ruleVariabl
 
         MethodCallExpr executeCall;
         switch (context.getRuleDialect()) {
+            case PROTOTYPE:
+                rewriteConsequenceForPrototype(ruleConsequence, 
usedDeclarationInRHS);
             case JAVA:
                 rewriteReassignedDeclarations(ruleConsequence, 
usedDeclarationInRHS);
                 executeCall = executeCall(ruleVariablesBlock, ruleConsequence, 
usedDeclarationInRHS, onCall);

Review Comment:
   Thanks, I knew that feature and I will give a look at how it is implemented. 
The problem here is that the objects inserted into the session in this case are 
not `Map` but `PrototypeFact` (that at the moment are backed by a Map, but this 
is only an internal detail), so I need to check if what we do to support mvel 
syntax is also a good fit for this use case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to