- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 12:57 PM
I am trying to add the ability to "Cancel" a request from the Change request form.
Issue, I am using the Cancel workflows upon cancellation business rule, and it works good to cancel all associated records, however, I am unable to find the method to set the state to "Cancelled."
I can change the state post update, but during update.
Any ideas?
Thanks again.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2014 08:08 AM
g_form only works on client scripts and br's run on the server.. so you can't use g_form, instead use current.number.
personally i would do it as an after rule.. so it applies AFTER the change is closed not before....
also lets back up a second and think about something else.. currently if they close a change... what happens to the change tasks?? if it is like ours was the tasks will stay open even though the change is closed <not just cancelled but ANY close>
what we have done instead of cancelling the tasks is to set in a client script that when you set the change to closed or canceled checks for kids and if it finds any prompts the user that they have to close all the children before closing the change and aborts the submit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 01:13 PM
Wade - Trying to understand your query. Are you not able to set the status to cancelled in the business rule?
Can you elaborate your query a bit more?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 01:27 PM
I have added a new state to the choice list call "Cancelled", assigned value 5.
I have updated the Cancel Workflows upon cancellation business rule condition and added && (current.state.changesTo(5)) to ensure the rule is triggered when I select Cancelled from the state choices. All works well, however, somewhere in the system, there is a rule or override or something that sets the state to "Closed Complete." This is incorrect, as the Change was just cancelled, not Closed Complete.
I need to find how to set the state to 5 (Cancelled).
Hope that helps.
Wade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 01:36 PM
Check out the business rule "task closer" on the task table. This is probably setting your task state back to 3 (Closed Complete).
If on Eureka, add filter conditions for Task Type != Change Request. If on Eureka, modify the condition to include "&& current.sys_class_name != 'change_request'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 02:50 PM
That took care of the state change, but now I find that the CTASKS are not being cancelled.
I assumed that once I cancelled the workflow, the tasks would cancel as well, but so not true.
Thoughts?