- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2017 02:21 AM
I have to change the state value of change to 'close' when it is rejected but i am unable to do it through workflow activity. Should i write any business rule for this or is there any other easy way?
Many thanks,
- Jayanth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 01:26 PM
I think the problem is more of that if it's rejected, it should move to canceled, since it haven't been implemented. And for that there already is a method you can reuse the code from perhaps. On change request there is a UI Action called "Cancel change", look at the code there and you should be able to pretty much copy paste that to get it to work without going through all the different stages.
And I would avoid using closed on changes that isn't implemented and use cancel instead, sorry I missed that in the original question, to focus on the workflow activity I guess
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2017 05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2017 05:46 AM
What does the run script do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2017 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2017 07:05 AM
Hmm.. weird. everything seems right. if you turn on debug BR, and do it. can you see if there is any before BR that might be messing with you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2017 09:38 PM
Hi Goran,
i found the reason for this, its because in change i can move only one state at a time, so i cant jump from authorize to close at a go.so i need to call the script include TaskUtil to change the state. If you can see the script in 'close' UI button of change you'll get to know, but i need a similar business rule that i can call in workflow but i'm unable to do it. Can you please help me with this.
Thanks and Regards,
- Jayanth