creating a parallel task through workflow,, user should not be able to close the CR if any of the task is open

sharayukasar
Mega Expert

i have created a workflow in which 3 tasks needs to be created once the change is approved .those are getting created but when i try to close the change request without closing tasks its allowing me to close it,that should not happen according to the requirement

instead it should throw error saying that you will have to close the task for closing the CR

any suggestion for achieving this would be helpful

Thanks in Advance

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi,



Take a look at using the Branch and Join activities on the workflow. This is what they are designed for.



Branch workflow activity


Join


View solution in original post

2 REPLIES 2

Chuck Tomasi
Tera Patron

Hi,



Take a look at using the Branch and Join activities on the workflow. This is what they are designed for.



Branch workflow activity


Join


Sanoop1
Kilo Expert

Hi Sharayu,



Write a before update business rule on change_request table. This BR would check for associated change task in open state and then let the change request close if all the associated tasks are complete.