Previewing a flow
You can preview a flow to help build or fine-tune the flow. When you preview a flow, you can see how source data passes through the flow and review how each stage changes the data.
- All stages in the canvas are connected.
You can preview both complete and incomplete flows when the source and all stages in the canvas are connected.
- All required properties are defined.
You can enter any valid value for required properties, even if they are not the final values that you intend to use.
You can configure preview settings such as the preview batch size and preview timeout, and whether preview writes to targets and executors. You can also specify whether preview runs for all stages in the flow or a subset of stages.
To preview data, click the Preview icon:
, and then click Preview.
After you run preview, you can review preview data for one stage at a time. You can view the data in a list view or a table view. When you use list view, preview displays the output records for each stage in the same row as the corresponding input record, when possible. With this order, you can easily compare the input and output data to view the changes made by the stage.
You can also edit the flow or update stage properties, and then run the preview again to see how your changes affect the data flow.
Views
- List view
- List view displays preview data in lists. List view provides both the input and output data for stages, when available. When List view shows both sets of data, you can see how individual stages affect the data.
- Table view
-
Table view displays preview data in a table. Table view provides output data for source and processor stages, and input data for target and executor stages.
To display preview data in table view, click the Table View icon:
.
Preview data types
In list view, preview displays the Data Collector data types for each field.
Preview uses the default format of the browser locale to display date, datetime, and time data.
For example, if the browser uses the en_US locale, preview displays dates using the following
format: MMM d, y h:mm:ss a.
Preview also displays datetime data in relationship to the browser time zone.
Writing to targets and executors
Since previewing a flow is a tool for development, preview does not pass data to target or executor stages, by default. You can, however, view the data that is passed to a target stage, which is typically similar to what is written to target systems.
When needed, you can configure preview to write data to target and executor stages. When writing to targets and executors, preview writes data to target systems and passes data to executors, which triggers their actions. For example, you might enable passing data to an executor to verify that it performs the configured task as expected.
To write to targets and executors, modify preview properties and enable the Write to targets and executors property.
Modifying preview properties
About this task
Preview uses default preview settings to preview a flow by default. You can configure preview properties before you preview a flow.
Your changes are used for the duration of your flow configuration session by default. To save your preview settings for later reuse, save the flow after you exit preview.For example, if you preview a flow and then leave the flow canvas without saving the flow, the next time that you preview the flow, preview uses the default settings.
Procedure
Additional preview details
- Oracle CDC flows - When you preview a flow that includes the Oracle CDC source, preview
generates a maximum of 10 records. Preview ignores the Preview batch size
property when the property is set to a higher value.
Also, preview allows up to 5 seconds for the source to receive records after connecting to Oracle. As a result, when previewing a flow with an Oracle CDC source, preview ignores the configured Preview timeout property when it is set to a higher value.
- Oracle CDC Client flows - Due to the complex nature of the Oracle CDC Client source, initiating
preview can take longer than expected. If preview times out, try increasing the Preview
timeout property incrementally to allow the source time to connect.
Also, to generate more than one preview record, set the Max batch wait time property for the source to a value greater than 0.
- Whole file data format - When you preview a flow that processes whole file data, preview displays only one record.