Abhitocode opened a new pull request, #3885:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/pull/3885

   The goal of this JIRA is to support the #{var_name} syntax in the Business 
Rules task handler for both DRL and DMN execution.
   During process instance execution, the defined process variables need to be 
set. When the Business Rules task handler is executed, it will find and execute 
the correct rule or decision based on the variable content.
   
   The variable is resolved within DecisionRuleTypeEngineImpl.java
   
   
![image](https://github.com/user-attachments/assets/641aa04f-d14f-4267-8c2f-b04bde6aa5a5)
   
   
   What I understood is if we get #var format in (inputModel), it can resolve 
exact value of that variable.
   
   In BusinessRuleTaskHandler when we assign a value we have to check if it has 
an expression or not "if(!fromDefinition.hasExpression())" If it doesn't have 
expression it will be variable. So kept value as variable format, then its 
going to be be resolved at evaluate method within 
DecisionRuleTypeEngineImpl.java.
   
   
   
   Tested the above implementation with testDMNBusinessRuleTask ith in 
ActivityTest.class 
   Changed the ![CDATA[0020-vacation-days]]> in the bpmn file to 
<![CDATA[#{modelName}]]> and tested.
   
   Closes: https://github.com/apache/incubator-kie-issues/issues/1913
   
   


-- 
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