[KULRICE-11295] Unable to change rule action from Validation to Route to Peopleflow / Notify PeopleFlow Created: 25/Nov/13 Updated: 15/Jan/14 Resolved: 15/Dec/13
|Project:||Kuali Rice Development|
|Fix Version/s:||2.3.3, 2.4|
|Security Level:||Public (Public: Anyone can view)|
|Reporter:||Gayathri Athreya||Assignee:||Shannon Hess|
|Remaining Estimate:||1 day, 4 hours|
|Time Spent:||Not Specified|
|Original Estimate:||1 day, 4 hours|
|Sprint:||2.4.0-m3 KRAD Sprint 4|
|KAI Review Status:||Not Required|
|KTI Review Status:||Not Required|
|Code Review Status:||Not Required|
|Include in Release Notes?:||
Steps to reproduce on env2
Create an agenda made of one rule,
Search for Agenda
This is the error in the logs
The customRuleActionAttributesMap in the AgendaEditor needs to be refreshed when the peopleFlow action is changed. Otherwise, the AgendaEditor holds onto the old ruleActionAttributes for validation as well as the new ruleActionAttributes. If you go from notifuPeopleFlow to routeToPeopleFlow, this will not be a problem because the attributes for ruleAction in this case remain the same, which are peopleFlowId and peopleFlowName. whereas while going from validation to peopleFlow or vice versa, it changes from the validation message and the validation type (Error or warning) to the peopleFlow ones. One possible way to fix this would be to refresh this customRuleActionAttributesMap map when the action type id is changed.
To see what I mean, put a break point in the following code after agendaBO once you blanket approve and examine the agendaBO data.
If you drill down all the way to AgendaBO>items>AgendaItemBO>RuleBO>Actions>ActionBO>attributeBOs
|Comment by Peter Giles (Inactive) [ 09/Dec/13 ]|
Note that this fix should go into the rice-2.3 branch.
|Comment by Shannon Hess [ 15/Dec/13 ]|
This issue has been fixed. While testing I also was getting the following error when changing the rule action from validation to the KRMSActionResolverType so I also fixed that issue as well.
|Comment by Gayathri Athreya [ 15/Dec/13 ]|
Awesome, thanks Shannon!
|Comment by Gayathri Athreya [ 21/Dec/13 ]|
Working now, thanks!!