The Workflow Builder is JMP’s built-in macro recorder that lets users log and compile interactive operations into reuseable and generalizable programs. In this recipe we create a simple Dashboard using the Workflow Builder that can be used on any dataset that contains the same columns as the original dataset. In a follow along recipe, we will see how to generalize this to any dataset.
Ingredients:
- Platforms: Workflow Builder, Control Chart Builder, Process Screening
- Objects: Data Tables
- JSL Features: Workflow Builder
Difficulty: Medium
Video Length: 3:39
Steps:
- Launch and turn on the Workflow Builder, File > New > New Workflow. Click the red Start button at the top left on the Workflow Builder dialog.
- Open the file Data1. Make sure the file was not previously opened, otherwise this step will not be recorded. If the file was previously opened, turn off Workflow Builder to make sure the Close File operation is not recorded then close the file. Turn the Workflow Builder back on and open the file.
- Launch the Control Chart Builder. Analyze > Quality and Process > Control Chart Builder. Workflow Builder records report windows at two points, when the underlying platform is launched and when the report is closed. The later captures the final state of the report after any changes are made and overwrites the former step.
- Select A as the Y and drag Datetime to the X axis.
- Close the Limit Summaries Outline Box.
- Turn on the Column Switcher. Under the hotspot to the left of the main Outline Box go to Redo > Column Switcher.
- Select columns A through T and click OK.
- Click Done.
- Launch the Process Screening platform. Analyze > Quality and Process > Process Screening.
- Select columns A through T as Process Variables. Click OK.
- Position the report windows for horizontally with the Control Chart Builder on the left.
- Under the Window menu select Combine Windows.
- Check the check boxes next to the two reports and click OK.
- Close the dashboard. Workflow Builder does not record the creation of the dashboard until it is closed.
- Stop the workflow recording.
- To generalize the workflow to other datasets, we will have to change the initial Open Data Table Operation. Open the Step Settings outline and click on the Open Data Table step.
- Delete the hard coded file path. Leave the Open() function empty.
- We will want to associate a table reference variable with the opened table. Change the code to:
tblRef = Open()
- Delete the second and third steps containing the Control Chart Builder and Process screening report snapshots. The platforms are embedded in the dashboard and are not needed.
- In the second and only other remaining step replace the first line of code with
Current Data Table(tblRef);
- Next, we’ll step through the code to see that it works properly. Start by clicking the rewind button on the Workflow Builder dialog.
- Click the Next Step button at the top. Select the table Data 2.
- Continue clicking the Next Step button until the workflow is complete.
- Click the Rewind button.
- Next, click the Play button. This will run the entire workflow. Select Data 3.