We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the code:
dhis2-rule-engine/src/main/java/org/hisp/dhis/rules/RuleEngineExecution.java
Line 127 in ddab487
Could be better to have something like:
try { if ( Boolean.valueOf( process( rule.condition() ) ) ) { for ( RuleAction action : rule.actions() ) { //Check if action is assigning value to calculated variable if ( isAssignToCalculatedValue( action ) ) { try { RuleActionAssign ruleActionAssign = (RuleActionAssign) action; updateValueMap(ruleActionAssign.content(), RuleVariableValue.create(process(ruleActionAssign.data()), RuleValueType.TEXT)); } catch (Exception e) { e.printStackTrace(); log.error( "Exception while assigning value for PR in " + rule.name() + ": " + e.getMessage() ); } } else { try { ruleEffects.add(create(action)); } catch (Exception e) { e.printStackTrace(); log.error( "Exception while applying action for PR in " + rule.name() + ": " + e.getMessage() ); } } } } } catch ( Exception e ) { e.printStackTrace(); log.error( "Exception in " + rule.name() + ": " + e.getMessage() ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the code:
dhis2-rule-engine/src/main/java/org/hisp/dhis/rules/RuleEngineExecution.java
Line 127 in ddab487
Could be better to have something like:
The text was updated successfully, but these errors were encountered: