
Call an Integration Flow of SAP Integration Suite from SAP Build Process Automation via Actions.
Refer to this help page to perform initial setup to connect SAP Build tenant to SAP Integration suite tenant:
In summary, 2 destinations need to be setup in the SAP Build Process Automation sub account. One is needed to fetch available Iflows in an Integration Suite tenant and another to call any Iflow.
Service instances of "Process Integration Runtime" with plan "API" and "Integration-flow" are created. Then a service key for each service instance provides the authorization details to be used in the 2 destinations.
Since our focus in this blog is to connect SAP Build to SAP Integration Suite, lets build a very simple Iflow. An Iflow with just one step that returns a fixed JSON payload representing Product data.
Open the Integration suite tenant and create a new Integration flow with sender channel as HTTPS and connection address as "/product". Uncheck CSRF Protected to simplify testing.
Add a Content Modifier step that returns Body as below JSON:
{
"Product": "21",
"ProductType": "SERV",
"CreationDate": "2016-10-17",
"CreationTime": "00:00:00",
"CreationDateTime": "2016-10-17T00:00:00Z",
"CreatedByUser": "CB9980000160",
"LastChangedByUser": "CB9980000160",
"IsMarkedForDeletion": false,
"CrossPlantStatus": "",
"GrossWeight": 0,
"WeightUnit": "KG",
"WeightISOUnit": "KGM",
"ProductGroup": "P001",
"BaseUnit": "H",
"BaseISOUnit": "",
"ItemCategoryGroup": "PSTE",
"NetWeight": 0,
"Division": "00"
}
02
Now deploy the Iflow. Switch to Monitoring option and check that the Iflow is in Started state and an Endpoint is assigned to the Iflow. Note: It takes a few minutes after deployment for the Endpoint to become visible.
Open SAP Build Lobby. In Connectors tab create a new Action. Choose Integration Suite > Integration Flow
If the design time destination was setup correctly, you can now see list of Iflows deployed in the connected Integration Suite tenant.
Choose an Iflow and create a new Action Project. If there are existing Action projects created from the same integration suite tenant then you can also add to an existing Action project.
Now Action Editor is launched with Name, description and the URL of the Iflow auto filled.
Note the inputs and outputs of the Action are empty, this is because the Integration Flow with https sender channel does not define any API specification.
In this particular example there is no input needed so input tab can be skipped. But normally Input fields can be generated using the Add from Sample JSON option. If you have tested the Iflow before then you may already have the sample input payload. Sample payloads can also be retrieved from the payload trace available in Integration Suite monitoring section if the Iflow has been called previously.
Output fields can be easily generated by making a test call in the test tab. Switch to the Test tab and choose the destination ( Runtime destination created earlier) and click on Test. If the destination was setup correctly, you can see a success 200: OK message with the API tab showing the received response. In our example a Product JSON is received.
Click on the Generate Output button to generate the Output fields from the received response. Switch to the Output tab and choose output to 200 to see the output fields that have been generated.
After this the standard procedure of Release and Publish of Action from Action Editor and then consumption of the Action in SAP Build Process Automation can be followed. Part 2 of this Blog can be used for reference on consumption of an Action in a Process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
14 | |
11 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 |