Scheduler broadcast capability

Scheduled event is an event that schedule the time for which user wants to execute the event.

  1. To access Workflow Console, URL is - https://tenant-url/admin/workflows
  1. After opening the console, you can find the list of all workflows.
Figure 1. Figure 236 – Workflow Console
  1. In the Workflow List page, there is “Create” button in the top right side of the screen and clicking on it opens a new page where you can create a new flow.
  2. There is a Start node in the drop area by default. Click on edit icon of start node.
Figure 2. Figure 237 – Start Node
  1. On clicking the edit icon, the following image appears. There are three events in Start node, Scheduled Event and External Event. Select Scheduled Events and click on Continue. Scheduled events get triggered at the time set by the user in its cron expression.
Figure 3. Figure 238 – Events in Start Node
C:\Users\username\AppData\Local\Microsoft\Windows\INetCache\Content.MSO\C9B29AD5.tmp
  1. After selecting Scheduled Event, fill Workflow Name, Cron expression and JSON Payload (optional), then click on the Save button and the information gets saved.
Figure 4. Figure 239 – Workflow Settings
C:\Users\username\AppData\Local\Microsoft\Windows\INetCache\Content.MSO\583E28AB.tmp
Figure 5. Figure 240 – Success Message

The Workflow Name and Cron expression are mandatory fields while JSON Payload is optional. The Workflow name’s length should be less than 18 characters.

  1. Action: Click on the edit icon of Action node and fill the mandatory fields. Select an OpenWhisk function name from Action drop-down box and fill JSON payload. After that click on the Save button.
Figure 6. Figure 241 – Edit Workflow: ScheduledFlow
Figure 7. Figure 242 – Filling JSON Payload
  1. After filling the details, click on the Save button and the following confirmation message appears:
Figure 8. Figure 243 – Confirmation Message
  1. Split Node: Split node allows to connect with more than two or maximum 5 outputs.
Figure 9. Figure 244 – Edit Workflow: Split Node
  1. SMS and Custom Mailer: Once the event gets scheduled, it sends a message through SMS and Custom Mailer.

SMS Node:

  1. Click on the edit button of SMS node and fill the required details.
  1. The recipient’s details and the body of the message will come from previous node’s output (e.g., Action).

To send SMS, you must have an account in Twilio. Twilio Account SID, Auth Token and Twilio phone number is required.

  1. Twilio phone number needs to be written in the Sender phone number field.

All the fields are mandatory.

  1. After filling all the fields, click on Save button.

If any of the fields are empty, then an error message appears stating that “Please fill the required fields”.

Figure 10. Figure 245 – SMS Node

The Sender Phone Number field of SMS node maintains a format. If entered in wrong format, an error message appears.

Custom Mailer

  1. Click on the edit button of the Custom Mailer node and fill all the fields.
  1. Username should be a valid email ID; Password should be the same email id’s password and service should be the same email id’s domain.
  1. The mail recipients and body of the mail should come from previous node’s output (e.g. Action) and you can see all the information regarding this by clicking the Info icon.
  2. After filling all the details, click on Save button.
Figure 11. Figure 246 – Custom Mailer
C:\Users\username\AppData\Local\Microsoft\Windows\INetCache\Content.MSO\91D2D334.tmp
  1. Web Notification Node: Using this ngode, user can follow the status of the execution of the flow. User can see the status in the chat page.
Figure 12. Figure 247 – Edit Workflow: Web Notification Node
Figure 13. Figure 248 – Chat Page