Question

Queue - pause and start

  • 19 January 2023
  • 3 replies
  • 237 views

Badge +5

Hi All, 

 

Is it possible to pause the Queue through bot or via API? Once the data is sent to the queue, I need to check something before the Workitems are picked up by all the machines in Device pool. 

 

Hence wanted to know if we can pause the queue automation after the work items are inserted and then resume queue automation via api or Bot? ( I do not want this to do manually)

 

Thanks

Vanitha R

 

 


3 replies

Userlevel 5
Badge +14

@VanithaR 

 

  1. Optional: If you want to update the Work Item data, when the automation is running, you need to perform the following steps:
    1. Pause the automation. Use the PUT method and the following endpoint URL: <your_control_room_url>/v3/wlm/automations/{id}
    2. Update the Work Item by using queue ID and Work Item ID. Use the PUT method and the following endpoint URL: <your_control_room_url>/v3/wlm/queues/{id}/workitems/{workitemId}
    3. Resume the automation. Use the PUT method and the following endpoint URL: <your_control_room_url>/v3/wlm/automations/{id}

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/control-room-api/cloud-api-wlm-add-workitems.html

Badge +5

Hi @rbkadiyam, In your steps you have mentioned to pause automation(is it done manually???) and then update work items via API. I would like to know if it is possible to pause automation via API? 

 

Thanks

Userlevel 5
Badge +14

@VanithaR Please check this api’s list 

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/control-room-api/cloud-control-room-apis.html

Reply