IBM Business Automation Application Designer is a low-code tool in IBM Business Automation Studio that enables business users to build business user interfaces, called applications, that integrate the capabilities from the platform. To allow business users to quickly and easily build an application, in 21.0.3 December 2021 release, we have also added capabilities, for example, to allow users to easily call automation services on page load and to configure data validation on application pages.
In this blog, we would like to provide a tutorial on how you can build an application that leverages these 2 capabilities:
Call automation services on page load
When building an application, you can now choose to call an automation service when the page loads. After you drag an automation service from the right-hand side palette to the page, you now have a choice to call the automation service not only when a button is clicked, but also when the page loads.
Configure data validation on application pages
When building an application, you can now mark a data item as required; and validate the value of the data item if it has restriction defined, for example, regular expression for String or minimum value for Integer. You can also define how validation errors are handled, for example, staying on the page or disabling a button when errors exist.
Here are the high-level scenarios that we will go through in this tutorial:
- Pre-requisite: Create a Workflow Automation Service called LoanApproval with 2 operations (requestLoanApproval and assessLoanRisk) that will be used by the application
- Scenario 1: Create a Loan Approval Request page in the Application with the necessary input fields required by LoanApproval Automation Service (Operation requestLoanApproval), and create a Confirmation page also
- Scenario 2: Configure data validation for the input fields on the Loan Approval Request page and define how validation errors are handled.
- Scenario 3: Update the Confirmation Page to display the confirmation information
- Scenario 4: Configure to call LoanApproval Automation Service (Operation assessLoanRisk) on page load so that the confirmation page can also display the assessment whether the request is high risk or not.
Pre-requisite: Create a Workflow Automation Service called LoanApproval
After you login to IBM Cloud Pak for Automation, go to “Business Automations” by using the Hamburger menu at the top left hand side of the header (see screen shot below) and then select “Workflow”. To create a Workflow Automation, click “Create”, select “Workflow automation” (see screen shot below) and enter a Name for the workflow automation (e.g. LoanApproval-WF) and click “Create”.