API command to resume paused task

Post Reply
manny
Posts: 1
Joined: Thu Nov 16, 2023 5:32 pm

API command to resume paused task

Post by manny »

Looking for api commands for resuming task which is in paused state.
admin
Site Admin
Posts: 3
Joined: Tue Jul 25, 2023 5:10 am

Re: API command to resume paused task

Post by admin »

select r_object_id, r_workflow_id, r_act_seqno , r_creation_date, r_runtime_state from dmi_workitem
where r_workflow_id in(
select distinct(r_workflow_id) from dmi_package where any r_component_id like '0b027%' and any r_component_id in(
select r_object_id from <custom object> where <attribute> = 'xxxxxx'
)
)


From the result, find paused work item for which r_runtime_state= 5.

Then use the following API to clear paused item:

begintran,c
restart,c,<workflow id>,<r_act_seqno>
complete,c,<r_object_id>
commit,c

For example :
begintran,c
restart,c,4d02718380226117,11
complete,c,4a02718380687a88
commit,c
Post Reply