Console Operator
Overview
The Console operator is a testing tool that logs data passed through the other Data Workflow operators in the DevTools Console. It lets you confirm that your Data Workflow is working correctly.
Without the Console operator, you can only view data at the beginning and end of your Data Workflow. Adding a Console operator after each step of the workflow lets you inspect the effects of the other operators. Watching your Data Workflow is helpful when you need to troubleshoot.
You'll find the Console operator under the I/O group to the left of the Data Workflow canvas.
About the Info Window
And here's a breakdown of each setting in the Info window:
Setting |
Description |
---|---|
Category |
Grayed out and non-adjustable setting indicating the operation type. |
Label |
Sets the label for your operator, displaying below the operator on your Data Workflow canvas. This field is optional, but set a label if you use more than one of the same operator type. A label helps you identify your operators without opening any Info windows. Labels are especially helpful with Console operators. This is because you'll see these labels logged in DevTools Console. |
Adding a Console Operator
Configure a simple Data Workflow that populates two fields with Not Applicable. Then, configure a Console operator to view the results in the DevTools Console.
Configure the Text Field Components
First, add two Text Field components to serve as the output components.
1. | In the Module Builder, drag and drop two Text Field components onto your canvas. |
2. | Enter the following Property ID and Label Text fields for each Text Field component: |
|
Property ID |
Label Text |
---|---|---|
1 |
jobTitle |
Job Title |
2 |
salary |
Salary |
3. | Click Save Component as you add them. |
Configure the Data Workflow Component
Next, set up the Data Workflow to pass data to the output fields.
1. | Drag and drop a Data Workflow component onto your canvas, placing it below the salary Text Field component. |
2. | In the Property ID and Canvas Label Text fields, enter dwfValue. |
3. | From the Trigger Type drop-down, select Manual. |
Configure the Create Value Operator
1. | Drag and drop a Create Value operator onto your Data Workflow canvas. |
2. | Configure the operator's Info window as follows: |
Info | |
---|---|
Category |
Create Value |
Label |
Create GO Value |
Preserve Argument Type |
☐ (unchecked) |
Expression/Value |
"yes" |
Configure the Set Outputs Operator
1. | Drag and drop a Set Outputs operator onto your Data Workflow canvas. |
2. | Configure the operator's Info window as follows: |
Info | |
---|---|
Category |
Set Outputs |
Component |
jobTitle |
Component 1 |
salary |
Action |
value |
3. | Connect the output port (right) of the Create Value operator to the input port (left) of the Set Outputs operator. |
Configure the Console Operator
1. | Drag and drop a Console operator onto the Data Workflow canvas. |
2. | Configure the operator's Info window as follows: |
Info | |
---|---|
Category |
Console |
Label |
Not Applicable |
3. | Connect the output port (right) of the Create Value operator to the input port (left) of the Console operator. |
4. | Click Save Component. |
Here's how the completed Data Workflow looks:
Configure the Button Component
Lastly, configure a Button component to trigger the Data Workflow.
1. | Drag and drop a ![]() |
2. | In the Property ID field, enter btnValue. |
3. | In the Label Text field, enter Not Applicable. |
4. | From the Action Type drop-down, select Event. |
5. | In the On Click field, enter or select dwfValue. |
6. | Click Save Component. |
7. | Save your module. |
Here's how the completed example looks in the Module Builder:
Preview your module in Express View and open the DevTools Console. Click Not Applicable to view the logged operator data.