Do you want to learn the fastest way to create a process that runs automatically every time you need?
A method that allows you to achieve a excellent results by writing less code as possible?
So what might interest you to learn the potentiality of the application lab, a user friendly UI that lets you use the power of the IBM Workload Scheduler service on Bluemix.
I will explain how to use it by introducing a use case already discussed in the following previous articles:
The scenario is the following:
We need to develop an e-commerce web application, every night the application needs to process orders received during the day and notify the customers via e-mail of the order status change.
To implement this scenario on Bluemix we can leverage the services that the platforms offers and that can be easily integrated in our application.
In order to schedule the order processes every night we can certainly use the Workload Scheduler service, we will use this service to periodically call a REST API in our application that will implement the business logic to process the orders.
In addition we need a database to store the orders, e-mail addresses and other customers information, for this we have decided to use a no-SQL database and then to use the Cloudant service
We also need a service to send the e-mails, we decide to use SendGrid service
Before you start this tutorial you need to deploy the application on your Bluemix account by clicking one of the links below:
Now you are ready to explore the features of the application lab.
First, go to your Bluemix dashboard and in the left menu click on services and then on workload-scheduler that it is the service istance just auto generated by the deploy procedure.
At the top of the page that will be open you will find the launch button of the application lab: Clicking and you'll be in.
Now you can create your first process by following these simple steps:
- Create a processes library
- Create a process:
- in general: add a name and eventually a description and the validity dates
- in triggers: click on new and then add a starting date and time in which to launch the process
- in steps:
- Click on new:
- select RESTful:
- then select your cloud agent:
- in action set the service uri:
- and finally click ok (after eventually fill also some of the other not mandatory fields)
- Click on enable process and you're done.
From now the IBM Workload Scheduler every night at 23:00 (11PM) will process on its own all the customer orders received during the day.