Business rule for clearing a value is not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 06:54 AM
I created a catalog item that has a variable called New Information Needed (this variable is a type = Yes/No). That variable is a Yes/No variable type and is REQUIRED. That variable is only visible on Task # 2 in my workflow which has a Rollback activity. So when the wf starts, Task 1 generates. I close complete the task, then Task # 2 generate and the New Information Needed variable is required. When you answer "yes" to that question and then mark the task Closed Complete - the rollback activity kicks in - which will cause Task # 2 to change from a state of Closed Complete to a State = Pending.
What I am looking to do is when that state changes to pending I want to clear the value of "Yes" in that task to "blank". I don't want any value in that field.
Here is my business rule which does not seem to be working:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 10:56 AM
try before otherwise you have to add current.update() to business rule which is not recommended

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 10:57 AM
I just tested it. It still is not working. Let me give the whole testing scenario:
1. I submit a request for this catalog item called "XXX".
2. There are no approvals, RITM automatically goes into the Fulfillment Stage
3. Task # 1 generates - the task gets marked Closed Complete by the fulfiller,
4. Task # 2 generates - on this task is a field called New Information Needed (REQUIRED). This field is a "Yes / No" option. The analysts fills in the required field and If they say "yes" and then close complete the task the ROLLBACK happens in the wf.
5. When the rollback kicks in - it causes Task # 2 to go from a state of "Closed Complete" to "Pending" AND Task # 1 will go back into a state of "Open".
So basically it is like it going in a loop.
I want to clear the value of the New Information Needed field when that task changes state from closed complete to pending.
Not sure if that clarifies what I am doing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 10:58 AM
Did you try when to run: before

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 11:00 AM
Doing it now

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 11:09 AM
I'm pretty sure we tried this, my only concern now that we have a Before business rule is that the workflow isn't going to be rolled back because it's set as fault on submission, resulting in the if module returning No every time.
Maybe the answer is to add the script within the workflow. After it's rolled back set the current records field to false. Just a thought