IBM BAW provides a comprehensive source control ability using Workflow center. Using Workflow center and process admin, this provides the ability to manage and govern a process during its lifecycle from development, deploying to staging environments and production. As well, they provides the ability to manage and maintains the environment at production.
Using REST APIs the same operations can be performed. Those APIs can be used by different CI/CD tools to provide the ability to increase the automation and adoption of the platform across an organization.
The intention of this blog is to provide an example of how to use the APIs. As well, an explore the different APIs and possible scenarios where they can be used.
The lifecycle of a process:
A typical process application lifecycle usually goes through key step:
- A developer creating a process and developing key components
- A developer creates a snapshot once a component is developed
- The process is tested locally on Process Center
- Promoting the process app to a higher environment for testing purposes
- Promoting to production once testing is performed. This can be online or offline. Online is when the production environment is listed as one of the environments managed by the Workflow Center. The offline deployment is when process app is required to be exported to be installed on a remote production environment.
As the adoption of IBM BAW matures and more process apps are developed, it becomes important to automate the administrative operations of managing the processes. Using the REST APIs provides the ability to achieve the automation required.
In the sample below, 2 methods were used to go through the example, Using SoapUI and Swagger UI. This demonstrates different options for the DevOps teams to explore the REST APIs.
To be able to interact with the Workflow engine using the REST API, it is required to log in to the environment. This retrieves a token that would be used in all consecutive calls.
- Login to the system using an authorized user and obtain the BPMCSRFToken
- Using SOAP UI, create a new project and provide a URI to your environment. For example: https://localhost:9443
- Use the following Resource path, /ops/system/login
- In the Request properties section, provide the username and password. The user should have administrative privileges to be able to perform the required operations
- Use the POST method
- Login_request parameter is required. This provides the number of seconds the token is valid for
- Below is an example
#Featured-area-2
#BusinessAutomationWorkflow(BAW)#Featured-area-1