Publish Tasks in Batch Pega Process Fabric Hub endpoint
The Publish Tasks in Batch endpoint helps you synchronize data between your application and the Pega Process Fabric Hub in bulk. The data publication process relies on the remote application, and the Pega Process Fabric Hub only accepts data. Consequently, use relevant REST APIs to synchronize data.
You publish tasks in batch by invoking the following endpoint:
POST /tasks/batch
Each batch request can contain up to 50 request items.
The following table shows a sample request body for the Publish Tasks in Batch endpoint:
Element | Value |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/tasks/batch |
Request headers | Authorization: Bearer access token |
Request body |
|
Response status | 202 |
Response body | Not applicable |
After you publish all the existing open tasks, invoke the Publish Tasks in Batch REST API with the preactivationDataLast query string parameter set to true with no request body. Invoking this request informs the Pega Process Fabric Hub that the tasks synchronization is complete.
In the Pega Process Fabric Hub, the registered application is in the Sync-InProgress state. To inform the Pega Process Fabric Hub that the application published the assignment data, set the preactivationDataLast query string parameter to true and invoke the Publish Tasks in Batch REST API. To move the application to the Active state, synchronize work queues and operators data.
The following table shows information about the endpoint that you invoke to inform the Pega Process Fabric Hub that the application published all the assignment data:
Element | Value |
Request URL | https://vlenghydcnt17263-processfabrichub.lab.pega.com/prweb/api/ppf/v1/tasks/batch?preactivationDataLast=true |
Request headers | Authorization: Bearer access
token |
Request body | Not applicable |
Response status | 202 |
Response body | Not applicable |
URL redirects
For assignments REST APIs, include an assignment redirect URL in the request payload. The redirect URL and the registration system URL form the absolute assignment redirect URL. When an end user clicks an assignment link in the Pega Process Fabric Hub, the browser opens the absolute redirect URL in a new tab.
The following table shows a sample request payload:
Element | Value |
Assignment URL | https://ap15.uplustelco.com/0065g000002fJBpAAM |
systemURL property in the Create Registration REST API | https://ap15.uplustelco.com |
actions.href property in the Publish Tasks in Batch REST API | \/0065g000002fJBpAAM |
Sample request payload |
|
For more information, see the Swagger documentation.
Previous topic Accessing Pega Process Fabric Hub data synchronization endpoints Next topic Publish Real Time Tasks Pega Process Fabric Hub endpoint