dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38662
Actions not getting saved when creating Program Rules
Hi
I created a program rule like this and saved it:-
[image: Inline images 3]
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=*]:
*<metadata xmlns="http://dhis2.org/schema/dxf/2.0
<http://dhis2.org/schema/dxf/2.0>">*
*<pager>*
*<page>1</page>*
*<pageCount>1</pageCount>*
*<total>1</total>*
*</pager>*
*<programRules>*
*<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
<http://localhost:8080/dhis/api/programRules/kUE8Le46sH8>">*
*<displayName>Application Rejection Rule</displayName>*
*<description>Application Rejection Rule</description>*
*<externalAccess>false</externalAccess>*
*<condition>#{ApplicationStatus} == 'Application rejected'</condition>*
*<access>*
*<read>true</read>*
*<update>true</update>*
*<externalize>false</externalize>*
*<delete>true</delete>*
*<write>true</write>*
*<manage>false</manage>*
*</access>*
*<program id="FKVGsUnWuRi" name="Social
Protection" created="2015-07-20T06:52:54.062+0000"
lastUpdated="2015-07-20T06:53:07.058+0000"/>*
*<userGroupAccesses/>*
*<programRuleActions/>*
*</programRule>*
*</programRules>*
*</metadata>*
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.
*Version:2.21-SNAPSHOT**Build revision:19683*
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
Follow ups