Business Processes

Anypoint Partner Manager V1.0 was deprecated in March 2021. Its End of Life is March 31, 2022. Support for Anypoint Partner Manager 1.0 continues in accordance with the Product Support and Maintenance Terms but is not available for new customers or upgrades. For the latest version of Anypoint Partner Manager, contact your Customer Success Manager to determine how you can migrate to the current version.

Configuring a Business Process is done using Anypoint Partner Manager API. This page shows an example of the necessary calls.

Create New Business Process

curl -X POST -H "Content-Type: application/json"
-H "Cache-Control: no-cache"
-H "Postman-Token: 15f4046b-e1f9-600d-9539-1804136eeab6"
-d '{
    "name": "PurchaseOrderRequestResponse"
    }'

"http://anypoint.mulesoft.com/b2b/tpm/api/partnerships/00000000-0000-0000-0000-000000000000/processDefinitions?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

Create CorrelationType

curl -X POST -H "Content-Type: application/json"
-H "Cache-Control: no-cache"
-H "Postman-Token: afce9858-bf35-d311-7b0b-c53118ac290a"
-d '{
  "name": "PONumber"
     }'

"http://anypoint.mulesoft.com/b2b/tpm/api/correlationTypes?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

Create Correlation Definition

curl -X POST -H "Content-Type: application/json"
-H "Cache-Control: no-cache"
-H "Postman-Token: 867e60ad-10eb-5c52-d002-72968f1f5a4c"
-d '{
  "sourcePropertyTypeId": "424ead63-6dc2-4709-a217-44211cf4191a",
  "targetPropertyTypeId": "424ead63-6dc2-4709-a217-44211cf4191a"
    }'

"http://anypoint.mulesoft.com/b2b/tpm/api/correlationTypes/93770789-a1d3-4eb7-bcf4-ff57a298214d/correlationDefinitions?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

Create Process (1)

curl -X POST -H "Content-Type: application/json"
-H "Cache-Control: no-cache"
-H "Postman-Token: 69f7238e-b29d-29e0-7d33-a1bbd0192ce5"
-d '{
  "correlationTypeId": "93770789-a1d3-4eb7-bcf4-ff57a298214d",
  "stepSequenceNo": 1,
  "documentDefinitionId": "216cfcab-789b-42ca-a40d-fa950dbaf9c2",
  "direction": "INBOUND"
    }'

"http://anypoint.mulesoft.com/b2b/tpm/api/partnerships/00000000-0000-0000-0000-000000000000/processDefinitions/d32e72a0-446e-4f77-8ebb-d55be46ecb86/processStepDefinitions?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

Create Process (2)

curl -X POST -H "Content-Type: application/json"
-H "Cache-Control: no-cache"
-H "Postman-Token: e3301c84-5c9c-583b-8493-88346ffbbaa4"
-d '{
  "correlationTypeId": "93770789-a1d3-4eb7-bcf4-ff57a298214d",
  "stepSequenceNo": 2,
  "documentDefinitionId": "9e8b69a2-52af-49ba-a385-27d5b8c3851d",
  "direction": "OUTBOUND"
   }'

"http://anypoint.mulesoft.com/b2b/tpm/api/partnerships/00000000-0000-0000-0000-000000000000/processDefinitions/d32e72a0-446e-4f77-8ebb-d55be46ecb86/processStepDefinitions?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

View the Configured Business Process

curl -X GET -H "Cache-Control: no-cache"
-H "Postman-Token: d497727b-6d4c-9043-7599-a1cba645aa5b"

"http://anypoint.mulesoft.com/b2b/tpm/api/partnerships/00000000-0000-0000-0000-000000000000/processDefinitions?environmentId=c3ed785e-480f-436d-ad72-8e9d35959f36&apiKey=b10ddf010da74f4b8f515433e8c7156d"

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub