Use Case: Building a Workflow in ThingWorx Workflow Builder
Complete the following steps to build a workflow in ThingWorx Workflow Management using the MRI demonstration data that you have installed.
1. From the ThingWorx Utilities Console, click the Workflow Builder tile.
2. Drag two Service Task activities and one Receive Task activity onto the canvas and place them between the Start and End nodes.
3. Rename the activities as follows:
◦ Service task 1— Locate Distributor
◦ Service task 2— Order Request
◦ Receive task— Confirm Helium Level
4. Connect the activities as shown below.
5. Click on the Start node and enter the following in the Description field on the Information tab: Verify helium levels on MRI machines.
6. Click the Events tab on for the Start node. Select the following options:
◦ Entity Type—ThingTemplate
◦ Entity—PTC.Demo.Assets.MRIMachineTemplate
◦ Event—Alert
7. In the Event Configuration panel, set the Property and Alert fields.
◦ Property—HeliumLevel
◦ Alert—Low
8. Click on the Locate Distributor node and select the Services tab. Select the following options:
◦ Entity Type—Thing
◦ Entity—DistributorNotifier
◦ Service—Distributor_Locate_Nearest
9. In the Service Configuration panel, set the input and output parameters.
◦ Asset (Input Parameter)— Select initiator
◦ result (Output Parameter)—Enter Distributor in the search field and press Enter.
10. Click on the Order Request node and select the Services tab. Select the following options:
◦ Entity Type—Thing
◦ Entity—DistributorNotifier
◦ Service—Email_Order_Request
11. In the Service Configuration panel, set the input the parameters.
◦ MRIMachine— Select initiator
◦ Distributor— Select Distributor
12. Click on the Confirm Helium Level node and select the Events tab. Select the following options:
◦ Entity Type—ThingTemplate
◦ Entity—PTC.Demo.Assets.MRIMachineTemplate
◦ Thing Name Property—initiator
◦ Event—Alert
13. In the Event Configuration panel, set the Property and Alert fields.
◦ Property—HeliumLevel
◦ Alert—Full
14. Click Validate on the toolbar above the canvas. A message appears notifying you that the workflow was successfully validated.
15. Click Save. Enter Replenish Helium in the Workflow Name field and select the Activate Now checkbox. Click Save.
| The Description field is optional. |