Record Replay
Overview
This Snap records the input documents from Triggered or Ultra Task requests and replays them in Designer so that you can work with real preview data. When developing a new triggered or Ultra pipeline, you should create a pipeline with this Snap at the head, create the task, and send a sample request to the task to be recorded. Note that for an Ultra Task, you should disable the task so that the recording can be saved. Now that there is a recording saved, you can continue to develop your pipeline with real data.
Transform-type Snap
Works in Ultra Tasks
Snap views
| View | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input | This Snap has exactly one document input view. It should be used as the unlinked input view in a Triggered or Ultra Task. | |
| Output | This Snap has exactly one document output view. | |
| Error |
Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
|
Snap settings
- Expression icon (
): Allows using pipeline parameters to set field values dynamically (if enabled). SnapLogic Expressions are not supported. If disabled, you can provide a static value.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
| Field / Field set | Type | Description |
|---|---|---|
| Label | String |
Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Record Replay Example: Replay document |
| Record File Path | Dropdown list | The path to the file where the recorded documents are stored. Default value: (with expression toggle (=) on) 'sldb:///%s-%s-%s.json'.sprintf(pipe.label, encodeURIComponent(Snap.label), Snap.instanceId) Example: (with expression toggle (=) on) 'sldb:///' + Snap.instanceId + '.json' |
| Count | String | Required. The number of documents to record. The last 'Count' documents are kept and written to the 'Record File Path' when the pipeline completes. |
| Replay-Only | Checkbox | Select this option to just replay recorded documents, not record new documents. |
| Snap execution | Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Validate & Execute Example: Execute only |