Workflow Task is getting cancelled at the end

ah16
Mega Expert

Hi,

When I create and close sc task after a minute. The catalog task status changes from "Complete" to "In-Complete". How do I debug why the state is getting "In-Complete" status at the end?

StateClosed IncompletewasClosed Complete

 

find_real_file.png

1 ACCEPTED SOLUTION

Hi

Here are some more details about what I replayed in my PDI:

find_real_file.png

I just put the Catalog Task in sequence with the timer like shown in the screenshot above.

I used the Script 1:1 like you submitted - which by the way works perfect 🙂 Well done!

If I execute the Workflow, it creates the Catalog Task, and will immediately proceed with the timer.

At this moment, the Catalog Task is in State "Open".

As soon as the Timer runs out, the Run Script will set exactly THAT Catalog Task to "Closed Complete" (see screenshot below):

find_real_file.png

 

The executed Workflow looks like shown below:

find_real_file.png

The Catalog Task Workflow Activity looks like shown below:

find_real_file.png

Remember to deselect the "Wait for completion" checkbox, to make the Workflow Activity transition to the Timer immeditately.

 

This, I guess, is your expected behavior, right?

What else did you configure as Business Rule?

If you have set up another customer Business Rule, just let me know about this, so that I can look, where this may affect each other.

Otherwise, let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk

 

 

 

View solution in original post

16 REPLIES 16

Sorry for the confusion. When I ran the workflow as per your suggestion, it closed the task but not REQ and RITM.

If I just create a task only thru workflow and run the script manually, it closed REQ and RITM correctly and worked as expected.

I added one more step to close the RITM in workflow and it worked.

Thanks for all your help. 

 

find_real_file.png 

Hi

Thanks a lot for clarification and thanks for your feedback.

Great, that you succeeded!

Have fun & BR

Dirk