Hi
I created a program rule like this and saved it:-
But when I click on edit on the same rule, I cannot see any of the actions that I created.
Here is the output from the API call [http://localhost:8080/dhis/api/programRules?fields=*]:
1
1
1
<programRule created=“2015-07-21T12:27:10.172+0000” lastUpdated=“2015-07-21T12:27:10.173+0000” name=“Application Rejection Rule” id="kUE8Le46sH8"href=“http://localhost:8080/dhis/api/programRules/kUE8Le46sH8”>
Application Rejection Rule
Application Rejection Rule
false
#{ApplicationStatus} == ‘Application rejected’
true
true
false
true
true
false
Here is the tomcat log:-
INFO 2015-07-21 17:57:10,162 Building object-bridge maps (preheatCache: false). (DefaultObjectBridge.java [http-nio-8080-exec-1])
* INFO 2015-07-21 17:57:10,166 Building object-bridge maps took 0.00 seconds. (DefaultObjectBridge.java [http-nio-8080-exec-1])
* INFO 2015-07-21 17:57:10,172 ‘admin’ create org.hisp.dhis.programrule.ProgramRule, name: Application Rejection Rule, uid: kUE8Le46sH8 (AuditLogUtil.java [http-nio-8080-exec-1])
* INFO 2015-07-21 17:57:10,173 ‘admin’ update org.hisp.dhis.programrule.ProgramRule, name: Application Rejection Rule, uid: kUE8Le46sH8 (AuditLogUtil.java [http-nio-8080-exec-1])
No error on the browser console.
Am I doing something wrong?
Also, is anyone able to add program rules to the existing programs on oslo servers (apps.dhis2.org/demo & dev)?? I am not able to add rules to any of the programs there(the rule just don’t get saved)? Is this a permission issue?
Kindly Help, We really need to use these.
Thanks
harsh
Version:2.21-SNAPSHOTBuild revision:19683