- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2020 12:29 PM
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
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 10:55 AM
Hi
Here are some more details about what I replayed in my PDI:
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):
The executed Workflow looks like shown below:
The Catalog Task Workflow Activity looks like shown below:
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 10:02 AM
Thanks Dirk for your response. If I create task not to wait, then I have BR on task closed that is not being triggered.
I'm just trying to create and close task but got stuck.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 10:55 AM
Hi
Here are some more details about what I replayed in my PDI:
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):
The executed Workflow looks like shown below:
The Catalog Task Workflow Activity looks like shown below:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 11:24 AM
Thank you. I modified the Workflow and It did created and closed the SC task but it didn't closed REQ & RITM.
If I run the same script manually, it is closing REQ & RITM correctly. Any tips, please?
Thanks again for all your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2020 12:16 PM
Hi
You are welcome.
What do you mean with "If I run the same script manually"?
Where do you run this script manually? And at which stage/Step/Activity in the Workflow?
I do not understand that scenario, where and when you run the script manually.
Can you give me some example, please?
BR
Dirk