Page 1 of 1

API command to resume paused task

Posted: Thu Nov 16, 2023 5:46 pm
by manny
Looking for api commands for resuming task which is in paused state.

Re: API command to resume paused task

Posted: Thu Nov 16, 2023 5:54 pm
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