
SAP Build Apps now has the ability to create page variables based on existing schemas, like from other variables, data entities, and most interestingly, processes. This is really helpful.
I especially like that for every process type of schema, you can get both the input and output schemas -- more on this below.
HISTORICAL CONTEXT: I'm sure this feature was an idea for a while, but I first heard about when the new Processes flow functions were released a year ago. It was great that you could now trigger processes from SAP Build Apps without all the manual calling of an API, but you still had to create the variables for the inputs and outputs -- if you made one data type mistake the process would fail. So the answer was for the schemas to be easily inherited from the process, and now that is possible.
When creating a new page variable, you can still define it from scratch, but now you can simply copy the schema from somewhere else:
Important to note that these definitions copy the schema onto the new variable. You can then modify the variable definition -- there is "linking".
I got to understand the feature because I recently updated tutorials for integrating SAP Build Apps with SAP Build Process Automation, and the ability to quickly create variables made the tutorial easier to understand and quicker to perform.
https://developers.sap.com/mission.build-workshop-sales-order.html
When triggering a process, all I had to do was create a page variable from the process schema, indicating:
One of the pains before was that essentially in SAP Build Apps, when defining the REST APIs for calling SAP Build Process Automations, you could only have one schema definition, either the input or the output. Now, I can create page variables for the inputs and for the outputs.
Here, I set up the page variable for the inputs of our process inputs, which is quite complicated.
To trigger the process, all I had to do was bind the page variable to the fields. Then, when I click the button to trigger, I drag a Trigger Process flow function, and set the Input Parameters to the context property of the page variable. No more setting object properties and each field separately.
I can still change the binding type to Object Properties and set the fields manually, or I can use a Formula to make modifications to the page variable.
Getting info about the process instances was even simpler, and the ability to create both input and output schemas helped.
This time I created a variable based on the Retrieve Process Instances schemas, and used the output schema.
This provided the standard fields that are part of every such API call.
Now all I had to do was bind the page variable to the UI. And in the logic, I just put the output of the Retrieve Process Instances flow function into the variable. Really easy.
It took really no time to be able to view the list of process instances.
Again, you can see the whole SAP Build Apps integration with SAP Build Process Automation in the revised sales order tutorials, which are now even faster to do, less than an hour to do both the process and the app.
https://developers.sap.com/mission.build-workshop-sales-order.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |