Overview
This is the companion to CX tasks. That guide explains what each task is for; this one lists the settings you will find in each task's editor. Property names are given as they appear in the Properties window, with the editor's label where it differs, so you can find a setting whichever way you reach it.
Three groups of options are common to several tasks and are described once at the end of this guide: the options every task has, the document operation options shared by Stitch, Split and Convert to PostScript, and the SQL connection options shared by Azure SQL Query and Assert.
Quick tip
Almost any option that takes a value also takes a variable name. TypeUser::OutputFilein a path field and the task reads the variable at run time.
CX Get Run Parameters
| Option | What it does |
|---|---|
Set from parameters (ParameterVariables, Parameters tab) |
A checklist of the package's variables. Each ticked variable is set from the run parameter of the same name. A ticked variable the package does not have fails validation; a parameter the run does not carry is a warning. Run parameters that nothing takes are listed in the log. |
Token variables (AccessTokenVariables, Access tokens tab) |
A checklist of String variables that receive an Azure SQL access token, for a connection string expression. Nothing is fetched when $Project::SqlAuthentication is set (which is the case on the integration runtime), and a failure to fetch is a warning. |
The task writes these variables whenever the package declares them, with no setting needed: User::RunFolderContainerUrl, RunFolderPath, InputsPath, OutputsPath, WorkPath, RunId, ApplicationName, TenantCode, TriggerKind and LocalWorkFolder (the scratch folder it creates on the node, %TEMP%\CXOrchestrate\{tenant}\{runId}).
Monitor-triggered runs supply TriggerFile (a String: one run-folder path) or, for a monitor batching per poll, TriggerFiles and TriggerFileList, which must be ticked into an Object variable and arrive as a table with the columns Path and FileName.
CX Raise Event
| Option | What it does | Default |
|---|---|---|
Level |
Progress, Info, Warning or Error. An Error entry does not fail the package by itself. | Info |
Message |
The text shown on the timeline. Accepts an expression. | |
Source |
Shown beside the message. Empty uses the task's name. | (task name) |
Count |
An optional number shown with the entry. |
CX Update Counts
| Option | What it does |
|---|---|
RecordsRead, RecordsRejected |
The record counts shown on the run page. |
DocumentsGenerated, DocumentsSubmitted, DocumentsDelivered |
The document counts shown on the run page. |
Note |
Free text recorded with the update. |
Values are absolute. A blank leaves that count unchanged, so a package can set records early and documents later.
CX File Operation
| Option | What it does | Default |
|---|---|---|
Operation |
Download single file, Download multiple files, Upload single file, Upload multiple files, Register input, Register output, List files, Delete files. | |
Run-folder path (BlobPath) |
Required for every operation. One file (outputs/batch.xml), a folder ending in /, or a pattern (outputs/composition/*.pdf); relative to the run folder, or the full path within it. Never a list, and never another run's folder. A variable that is empty at run time is an error. |
|
Local file / Local folder / Local copy to measure (LocalPath) |
For an upload, the file or folder to send (required). For Register output or Register input, an optional local copy to measure for size and checksum. | |
File-name pattern (LocalPattern) |
Upload multiple files: which files in the local folder to send. | * |
Into folder (LocalFolder) |
Downloads: where the files land on the node (required). | User::LocalWorkFolder |
Overwrite existing files (Overwrite) |
Downloads and uploads. | on |
Register as output (RegisterAsOutput) |
Uploads: record each uploaded file as a run output. | on |
Content type (ContentType) |
Set on the uploaded blob; guessed from the extension when empty. | |
Source (SourcePath) |
Register input: where the package fetched the file from, recorded with it. | |
| Documents, Records, Lines | Counts recorded against the file for Register input, Register output and a single-file upload. Refused on a multiple-file upload unless exactly one file matches. | |
Local path into (FileVariable) |
Download single file: a String variable that receives the local path. Set DelayValidation on the Flat File connection manager whose ConnectionString uses it. | User::DownloadedFile |
Files into / Deleted files into (FilesVariable) |
An Object variable that receives the files acted on as a table: BlobPath, FileName, LocalPath, SizeBytes, ResultId. |
|
Count into (CountVariable) |
Multiple-file operations, List and Delete: how many files matched. | |
Registration id into (ResultIdVariable) |
The id of a single file's registration; several files' ids are in the table's ResultId column. |
|
Fail when nothing matched (FailIfNone) |
Whether a pattern that matches nothing fails the task. | on |
Register output measures the file where it is in the run folder (nothing is copied) and is idempotent on the path, so registering the same file twice updates its counts rather than adding a second output. Delete files removes the blobs and leaves their registrations for the run's sweep to tidy.
CX Transfer File - Retrieve Remote
| Option | What it does | Default |
|---|---|---|
Location (LocationName) |
The registered file location to fetch from (required). | |
Folder |
The folder within the location. | |
File pattern (FilePattern) |
*, a glob or a regular expression. |
* |
At most (MaxFiles) |
Stop after this many; 0 fetches every match. | 0 |
FilesVariable |
An Object table of the fetched files: BlobPath, FileName, SizeBytes, SourcePath. |
User::InputFiles |
CountVariable |
How many were fetched. | User::InputFileCount |
FailIfNone |
Fail when nothing matched. | on |
The files land in the run folder's inputs/ and are registered as inputs.
CX Transfer File - Send Remote
| Option | What it does | Default |
|---|---|---|
Run-folder path (OutputBlobPath) or File-name pattern (FilePattern) |
Which registered outputs to send; one of the two is required. | |
Location (LocationName) |
The registered outbound location (required). | |
Folder |
The folder on the location. | |
Rename to (TargetFileName) |
A new name, allowed only when exactly one file is selected. | |
Overwrite |
Deliver again to a destination that already has the file. | off |
Files delivered into (DeliveredCountVariable) |
How many files were sent. |
CX Batch - Import
| Option | What it does | Default |
|---|---|---|
OutputBlobPath |
The registered output to import (required). | |
Channel |
The CX Engine channel (required). | |
ApplicationApiCode |
The CX Engine application's API code (required). | |
Hold for manual release (RequireManualRelease) |
Create the import held, for release in CX Engine. | off |
ImportGuidVariable |
Receives the import's GUID. | User::ImportGuid |
Azure SQL Query
Uses the SQL connection options, plus:
| Option | What it does | Default |
|---|---|---|
CommandType |
Text or StoredProcedure. | Text |
Sql |
The statement or procedure name. The editor colours the SQL. | |
Parameters |
One per line: @Name = User::Var, @Name out = User::Var, inout, return. An input may be a literal. |
@RunId = User::RunId |
OutputMode |
Nothing, First row into variables, Every row into an Object variable, XML file or CSV file. | Nothing |
RowsAffectedVariable |
Nothing: receives the rows affected. | |
ColumnMappings, FailIfNoRow |
First row: which column fills which variable (by name or position), and whether an empty result fails the task. | |
ResultSetVariable, RowCountVariable |
Every row: the Object variable for the rows, and a count. | |
Write to (Destination) |
Files: RunFolder, Local or Both. | RunFolder |
Subfolder, FileName |
Where in the run folder the file goes. | outputs, result.xml / result.csv |
LocalFolder |
Where on the node a local copy goes. | |
FailIfEmpty |
Fail when the query returns no rows. | |
RootElement, RecordElement, XmlDeclaration, IndentXml |
XML shape. Each row becomes one RecordElement. |
Document |
Delimiter, IncludeHeader, QuoteAll, Utf8Bom |
CSV shape. | |
RegisterAsOutput, ResultIdVariable |
Record the file as a run output. Off by default: a payload is a working file, not an output. | off |
DocumentsVariable, SizeBytesVariable, LocalPathVariable |
What was written. |
Assert
Uses the SQL connection options when either value is a query, plus:
| Option | What it does | Default |
|---|---|---|
InputSource / ExpectedSource |
A query, A variable or A value for each side. | Variable / Value |
InputSql, ExpectedSql and their …Parameters |
A query must return one row and one column. No row means null; more than one row or column fails the task. Both run in one transaction that is rolled back. | @RunId = User::RunId |
Operator |
Equals, NotEquals, GreaterThan, GreaterOrEqual, LessThan, LessOrEqual, In, NotIn (a;b;c), Contains, StartsWith, EndsWith, Matches (a .NET regular expression), IsNull, IsNotNull, IsEmpty, IsNotEmpty. The symbols =, <>, >= and so on are accepted too. |
Equals |
Compare as (CompareAs) |
Auto: numbers as numbers whatever their types, dates as dates, booleans as booleans, otherwise text. Number, Text, Date or Boolean convert both values first, and a value that will not convert fails the task. Contains, StartsWith, EndsWith and Matches need Auto or Text. | Auto |
IgnoreCase |
Text comparisons only. | off |
When it fails (Severity) |
Error fails the task; Warning records a warning and succeeds. | Error |
Message |
Replaces the generated message. Placeholders: {Name}, {Input}, {Expected}, {Difference}, {Operator}, {InputSource}, {ExpectedSource}. |
|
Show on the run's timeline (TimelineEvents) |
Write the outcome as a timeline event: Info on a pass, Error or Warning on a failure, with the difference as the count. | off |
The generated message names both values and their sources, for example Split PDFs = composed: input value 1,203 (User::SplitDocuments), expected 1,205 (expected query); 2 fewer.
CX Batch - Compose and Return
Request
| Option | What it does | Default |
|---|---|---|
Run-folder path (DataBlobPath) |
The XML payload in the run folder (required). It need not be registered. | |
ApplicationApiCode |
The CX Engine application whose template composes the records (required). | |
Record id field (RecordIdField) |
The XML path of each record's identifier, used in reports and journals. | |
Record name field (RecordNameField) |
The XML path of each record's name, written into the journal so a split can name each PDF ({Name}). Every record needs one; an empty name fails the composition before anything is composed. |
|
If a record fails (FailedRecords) |
Fail the composition: every record is attempted, then the composition fails and keeps no outputs, naming the failed records. Keep the records that composed: the outputs are kept without the failures, which stay in the journal with their error, and the run is warned. | Fail the composition |
JobReference |
Your own reference for the job. | {project}_{runId} |
Attachment, AttachmentMediaType, AttachmentMediaColor |
A registered PDF input (usually a file-upload run parameter) appended to every record of each output that has IncludeAttachment on, and the stock it prints on. |
Outputs
Each of the three outputs has its own switch and settings, prefixed IndividualPdfs, MergedPdf or PostScript:
| Option | What it does | Defaults |
|---|---|---|
IndividualPdfs, MergedPdf, PostScript |
Whether to produce that output. | on, off, off |
…BackgroundImages |
Include the template's background images. | |
…Duplex |
Two-sided output. PostScript offers Native (the printer's own duplex), BlankPages (a blank page inserted where needed) or Off. | Native |
…IncludeAttachment |
Append the attachment to every record of this output. | |
…Register |
Record the files as run outputs. Off keeps them as working files: in the manifest, not delivered. | on for the PDFs |
…FileNameMode, …Path |
Where the output goes: beside the payload under its own name, or a run-folder path you choose. | beside the payload |
IndividualPdfsFilenameField |
The record field that names each individual PDF. | |
IndividualPdfsZip, …ZipFileNameMode, …ZipPath |
The individual PDFs arrive as one zip, beside the payload as {payload}.zip or at a path you choose. |
|
…Report, …ReportPath |
Write the output's record report, and where (empty: the logs folder beside the output). | on |
…JournalFile, …JournalPath |
Write the output's journal as a file, and where. | on for individual PDFs, off otherwise |
…EmbedJournal |
Attach the journal inside the PDF (as cx-journal.json), which is how the document tasks read it later. |
on for the merged PDF, off for individual PDFs |
PostScriptMediaCommands, PostScriptLevel, PostScriptBinaryOutput |
Stock commands in the PostScript, the language level (2 or 3) and binary encoding. | on, 3, on |
PostScriptCompress, PostScriptDelivery |
A .ps.zip or .ps.gz copy beside the PostScript (None, Zip, GZip), and which to deliver: PostScript, Compressed or Both. |
None |
Logs
LogEngine (the engine's own log, on), LogResult, LogOptions, LogManifest, LogOriginalPostScript (the converter's raw PostScript, kept as .pstmp) and LogImpressionReport (one row per page: record, sequence, page, sheet, side, media type and colour, for stock analysis). All but the engine log are off; a failed composition keeps every log regardless.
Delivery, results and waiting
| Option | What it does | Default |
|---|---|---|
OutputLocationName, OutputFolder |
A registered outbound location to deliver the outputs to. Empty leaves them in the run folder. | |
RequestIdVariable |
Receives the request id. | User::CompositionRequestId |
RequestsVariable |
An Object table the task appends a row to, read by Wait for Compose: RequestId, JobReference, ApplicationApiCode, PayloadPath, Status, JobKey, and for each output its Path, ReportPath, JournalPath and JournalEmbedded. |
User::CompositionRequests |
JobKeyVariable |
CX Engine's job key. | |
WaitForCompletion, WaitTimeoutMinutes, PollSeconds |
Wait here rather than in a separate task. | off, 120, 5 |
RetrieveMergedPdf, RetrieveIndividualPdfs, RetrievePostScript, RetrieveReports, DownloadTo, ExtractZip |
When waiting, download the results onto the node. | |
IndividualPdfsVariable, RecordsVariable, MergedPdfFileVariable, PostScriptFileVariable, IndividualPdfsLocationVariable, ManifestJsonVariable |
What was retrieved. |
CX Batch - Wait for Compose
| Option | What it does | Default |
|---|---|---|
Wait for every composition of the run (WaitForAll) |
Off, only the requests in the table are waited for. | on |
RequestsVariable |
Any Object table with a RequestId column; normally the one Compose and Return appends to. |
User::CompositionRequests |
FailFast |
Stop at the first failed composition instead of letting the rest finish. | off |
TimeoutMinutes, PollSeconds, FailOnTimeout |
How long to wait, how often to look, and whether running out of time fails the task. | 120, 5, on |
StatusVariable, CompletedCountVariable |
The overall status and how many finished. | |
Record count into (DocumentsVariable), Sheet count into (PagesVariable) |
The summed records and sheets across the compositions. | |
CompositionsVariable, IndividualPdfsVariable, RecordsVariable, ManifestJsonVariable |
Tables describing each composition, each individual PDF and each record, and the manifests as JSON. | |
| Retrieve options | As for Compose and Return: download the results onto the node. |
CX Convert to PostScript
Uses the document operation options, plus:
| Option | What it does | Default |
|---|---|---|
Input PDF (InputPath) |
The PDF in the run folder (required). | |
JournalPath |
The journal file, required when JournalSource is File and refused when it is Pdf. | |
Duplex |
Native PostScript, Blank pages or Off. | Native |
MediaCommands |
Inject stock commands from the journal. | on |
PsLevel, BinaryOutput |
Language level and encoding. | 3, on |
Compress |
None, Zip (.ps.zip) or GZip (.ps.gz). | None |
KeepOriginalPostScript |
Keep the converter's raw PostScript as {output}.pstmp in the logs folder. |
off |
The output is written beside the input by default (letters.pdf becomes letters.ps). One operation is made per output path per run, so a retried task picks up the same operation, or retries it if it failed.
CX Stitch PDFs and CX Split PDFs
Both use the document operation options, plus:
| Option | What it does | Default |
|---|---|---|
InputSource |
Table or Manifest file. | |
InputTable |
An Object variable with a Path column (whole PDFs, in order), plus a Journal column when journals are read from files. Any Pages, StartPage, RecordId or Name column is refused: page ranges and single records belong in a manifest. |
|
ManifestPath |
A <PdfAssembly> file in the run folder. A <Record file="…" recordId="…"/> takes every page of that record from the file's journal, which is how a FOR XML PATH('Record') query builds a print file from chosen records with no page numbers. |
|
Padding |
Off, PadParts (each file or record starts a new sheet) or, for Stitch only, PadOutput (only the end is padded). | Off |
EmbedJournal |
Attach the combined journal to the output PDF. Split's PDFs are the files people receive, so it is off there. | on for Stitch, off for Split |
NamePattern (Split only) |
Names the PDFs in the zip: {RecordId}, {Name} (the record's name from the journal), {Sequence}, {Source}, {Index}, {File}. Two PDFs with one name fail the split; use {Source}_{RecordId} when ids repeat across files. |
{RecordId} |
The default outputs are {first PDF}.stitch.pdf and {first PDF}.split.zip, each with its record report and, for a split, a journal file naming each record's PDF.
Document operation options
Shared by CX Stitch PDFs, CX Split PDFs and CX Convert to PostScript, which all run in the tenant's document worker.
| Option | What it does | Default |
|---|---|---|
WaitForCompletion, WaitTimeoutMinutes, PollSeconds |
Wait for the operation here. Without waiting, the counts below are not filled. | on, 60, 5 |
DownloadTo |
A local folder to download the output into once it finishes. | |
OutputPath |
Where in the run folder the output goes; empty is beside the input under the default name. | |
Register |
Record the output as a run output. | off |
JournalSource |
Pdf: the journal attached inside each PDF. File: a journal file named for every PDF. Nothing is assumed and the other source is never tried. | |
RequireJournal |
Fail an input PDF that has no journal rather than process it without stock and record information. | on |
WriteReport, ReportPath |
Write the output's record report, and where. | on |
WriteJournalFile, JournalFilePath |
Write the output's journal as a file, and where. | off (on for Split) |
Logs folder (LogsFolder) |
A run-folder folder for the side files (manifest, outcome, report and journal when they have no path of their own), for example process/logs, so an output in outputs/ leaves nothing else there. Empty is logs/ beside the output. |
|
OperationIdVariable, OutputFileVariable, StatusVariable |
The operation's id, the output's run-folder path and its final status. | |
RecordsVariable, DocumentsVariable, PagesVariable, SheetsVariable, FilesVariable |
Counts from the result when waiting; records and sheets are -1 with a warning when there was no journal. |
Before an operation runs, each input's journal and record report are checked against the PDF itself: page count, numbering, sheets, and ranges with no overlap or gap.
SQL connection options
Shared by Azure SQL Query and Assert.
| Option | What it does | Default |
|---|---|---|
ConnectionSource |
A server and database, with an Azure SQL token, or An ADO.NET connection manager. Only the connection-manager choice joins a package transaction. | Server |
ServerName, DatabaseName |
The server and database for the token route. | $Project::StagingServer, $Project::StagingDatabase |
AccessTokenVariable |
A String variable holding an Azure SQL token (filled by CX Get Run Parameters). Empty, the task fetches its own through the default credential. | User::SqlAccessToken |
SqlConnectionName |
The ADO.NET connection manager for the other route. | |
CommandTimeoutSeconds |
How long a statement may run. | 600 (Assert: 60) |
Options shared by every task
| Option | What it does | Default |
|---|---|---|
CX Orchestrate connection (ConnectionName) |
The connection manager to use. If the name is not found and the package has exactly one CX Orchestrate connection, that one is used with a warning. | CX Orchestrate |
FailPackageOnError |
On, a platform refusal fails the task. Off, it becomes a warning ending "(FailPackageOnError is false; continuing)". | on |