Task should not be created if previous task is closed incomplete

Vikram3
Giga Guru

Hi all,

I have a requirement that if a task is closed complete, next task should be created. If not RITM should be closed incomplete.

How to configure workflow for this?

Thanks in advance.

Regards,

Vikram

1 ACCEPTED SOLUTION

Brent Sutton
Mega Sage

Hi Vikram,

I have had a similar requirement in the past and created a subflow to handle "Closed Incomplete" in a standard repeatable way.

1. Create a workflow to handle the closed incomplete activities. This will be used as a Subflow in your RITM workflow and can be used across multiple workflows. Should look something like this:

* NOTE: You don't need to put these activities into a subflow if you don't want to. You could add them directly to your main workflow if you like. I put them into a subflow so I can reuse the functionality across multiple workflows. 

find_real_file.png

2. Drag your "Closed Incomplete" subflow onto your RITM workflow

find_real_file.png

3. On you Catalog task activity in your workflow you need to right click and select "Add Condition"

find_real_file.png

4. Configure the "Condition" to activity.result == '4'

find_real_file.png

5. Amend the "Always" condition to activity.result == '3'

find_real_file.png

6. Link the Task Condition for "Closed Incomplete" to the subflow that handles the closing of the RITM

find_real_file.png

Hopefully this gives you some ideas about how to handle Closed Incomplete.

Brent

P.S. Please mark as helpful and/or correct if this answered your question.

View solution in original post

8 REPLIES 8

Shishir Srivast
Mega Sage

You can have a "Wait for Condition" Activity in the workflow to check if the previous task is closed then move the workflow to create next task.

The workflow evaluates the Wait for condition activity each time the current record is updated, so when 1st task is closed then you need to update some field (may be a custom field) on RITM to trigger "Wait for Condition" Activity.

Wait for condition workflow activity

Brent Sutton
Mega Sage

Hi Vikram,

I have had a similar requirement in the past and created a subflow to handle "Closed Incomplete" in a standard repeatable way.

1. Create a workflow to handle the closed incomplete activities. This will be used as a Subflow in your RITM workflow and can be used across multiple workflows. Should look something like this:

* NOTE: You don't need to put these activities into a subflow if you don't want to. You could add them directly to your main workflow if you like. I put them into a subflow so I can reuse the functionality across multiple workflows. 

find_real_file.png

2. Drag your "Closed Incomplete" subflow onto your RITM workflow

find_real_file.png

3. On you Catalog task activity in your workflow you need to right click and select "Add Condition"

find_real_file.png

4. Configure the "Condition" to activity.result == '4'

find_real_file.png

5. Amend the "Always" condition to activity.result == '3'

find_real_file.png

6. Link the Task Condition for "Closed Incomplete" to the subflow that handles the closing of the RITM

find_real_file.png

Hopefully this gives you some ideas about how to handle Closed Incomplete.

Brent

P.S. Please mark as helpful and/or correct if this answered your question.

Thanks for the clear explanation Brent. But when I am going for catalog task activity I am having only 'Always' option. There is no Closed Complete or Closed Incomplete as you mentioned.

find_real_file.png

Hi Vikram,

  • You need to amend the "Always" condition by double clicking on it.
  • Change the condition to activity.result == '3', change the name to "Closed Complete" then save.
  • Then on you Catalog task activity in your workflow you need to right click and select "Add Condition".
  • Configure the "Condition" to activity.result == '4' and call it "Closed Incomplete"

My screenshots probably confused you as they came from a workflow where I had already implemented the technique I described.