Publish Work Queues in Batch Pega Process Fabric Hub endpoint
The Publish Work Queues in Batch REST API ensures that users can process assignments from your remote application by interacting with a correlated work queue in the Pega Process Fabric Hub. Publishing work queue data in a batch saves time, and users can process work faster.
You publish data for all work queues in your remote application to the Pega Process Fabric Hub by invoking the following endpoint:
POST /workqueues/batch
Each batch request can contain up to 50 request items. When you publish data, ensure that you set the preactivationData query string parameter to true.
The following table shows a sample request body for the Publish Work Queues in Batch API endpoint:
Element | Value |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/workqueues/batch?preactivationData=true |
Request headers | Authorization: Bearer access
token |
Request body |
|
Response status | 202 |
Response body | Not applicable |
For more information, see the the Swagger documentation.
After you publish the work queues to the Pega Process Fabric Hub, invoke the Publish Work Queues in Batch REST API with the preactivationDataLast and preactivationData query string parameters set to true with no request body. Invoking this request informs the Pega Process Fabric Hub that the work queues synchronization is complete.
The following table shows information about the endpoint that you invoke to inform the Pega Process Fabric Hub that the application published the work queues data:
Element | Value |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/workqueues/batch?preactivationData=true&preactivationDataLast=true |
Request headers | Authorization: Bearer access
token |
Request body | Not applicable |
Response status | 202 |
Response body | Not applicable |
Resynchronizing work queues data
To ensure that the Pega Process Fabric Hub displays current information about work queues in your remote application, you resynchronize data after you create or update work queues. To resynchronize work queues, you first delete work queues data in the Pega Process Fabric Hub by invoking the following endpoint:
DELETE /workqueues
You then republish work queues data by invoking the Publish Work Queues in Batch API
endpoint.
Previous topic Publish Real Time Tasks Pega Process Fabric Hub endpoint Next topic Publish Operators in Batch Pega Process Fabric Hub endpoint