- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 09:58 AM
Hi Team,
We have a workflow on RITM table.
after a catalog task creation using catalog task activity, I am setting scratchpad object with this task sysID.
in next step I am using wait for condition , using scratchpad value, quering sc_task table and I am checking for state change to cancelled backend value is -10.
workflow has reached this wait for condition but even after updating the state of task to cancelled still workflow is stuck at wait for condition activity only.
If I check for any other state like closed (backend value is 3). its working fine.
Any suggestions team?
bit urgent.
Best Regards,
Pooja
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:37 AM
The workflow is running on the RITM record, so the Wait for scripts only re-runs every time there is an update to the RITM record. Closing a Catalog task usually causes a RITM record update. If it does not in this case, you can try to add a Business Rule to the sc_task table that forces a RITM update when a Catalog Task state changes to Cancelled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:27 AM
Does the Catalog Task activity shown in the screenshot prior to the Wait for activity have the "Wait for completion" box checked, or does the Wait for start while this task is still open? In your latest test, was SCTASK0359726 ever in the Work in Progress state? If you update the RITM record after the update that changes this Catalog Task to the Cancelled state is the Wait for then satisfied?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:37 AM
Sc_task wait for completion is not checked.
as sc_task created, I just selected cancelled dropdown and saved it.
as Sc_task is created its initial state is work in progress only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:26 AM
It has updated now , but the time gap is huge that is 8 minutes. how can we reduce this and make this update at the earliest?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:37 AM
The workflow is running on the RITM record, so the Wait for scripts only re-runs every time there is an update to the RITM record. Closing a Catalog task usually causes a RITM record update. If it does not in this case, you can try to add a Business Rule to the sc_task table that forces a RITM update when a Catalog Task state changes to Cancelled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 11:49 AM
Hi @Pooja58 ,
you can create ports like this
based on the state of the sc task
to create these open the sctask activity and click on conditions related list
and create workflow conditions in the condition you can check
name = you can give state name(you can give anything)
condition is important this checks against state of the sctask
activity.result == state value
looks like your requirement might suits this
this way you don't have to create a wait for condition activity (enable wait for completion on sctask)
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya