I took some time this week to work through the tutorial mission titled Create Sales Order Workflow with SAP Build. It was a great opportunity to see how SAP Build Apps and SAP Build Process Automation can work together.
The Mission
The mission is organized into two groups of tutorials and can be complete using SAP BTP free tier.
The first group, by @Chaitanya_Priya, takes you through using SAP Build Process Automation to create and test a simple workflow process that is started by a "trigger". Once the workflow is deployed, a second tutorial shows how to create a BTP destination the points to the trigger. The second group, by @dan_wroblewski, shows how to create an app that starts a workflow by making an API call through that BTP destination. It also provides a guide for getting process status information from the workflow service.
Simple workflow started by a trigger
BTP destination configuration for workflow trigger
App page to initiate Order Approval Process
App page for viewing workflow status
Notes from My Experience Completing the Mission
I was a little confused when the instructions indicated that I needed to "create an instance of SAP Build Process Automation". I thought the booster had already done that. Didn't I just build a workflow?
It turns out that two things are required:
- The SAP Build Process Automation application, which is setup by the SAP Build Process Automation (Free) booster.
- An instance of the SAP Build Process Automation service which you need to setup manually.
This was further complicated when I tried to create the instance. I needed a standard instance plan and all that I had available was the free subscription plan.
No standard instance available
This issue was easy to correct. I returned to the global account level in BTP cockpit and assigned the standard plan to the subaccount.
Adding the standard entitlement for SAP Build Process Automation
You might be concerned that the"standard" plan would incur charges. I was. I expected to complete the exercise entirely using the BTP free tier. That concern went away after @dan_wroblewski pointed me to this blog. It explains the various SAP Process Automation plans.
I probably spent more time completing the "Test the trigger" step than any other part of the mission. The concept is pretty simple, but there's enough copying. pasting, and typing to lead to multiple minor errors. I think I managed to run into all of the issues Dan outlines in the tutorial. Fortunately, improvements in this are are already on the roadmap
This tutorial provides a good introduction to how any program, and especially apps from SAP Build, can trigger and interact with workflows. It's also a great technical deep dive to really get exposed the SAP Build products.
Try it out! And, let us know about you experience.