Skip to main content

Workflow Visual Editor

A Workflow Job is a JAMS Job that uses the Workflow execution method to run a Windows Workflow Foundation workflow. In the JAMS Web Client, the Source tab of a Workflow Job opens the Workflow Visual Editor, which shows the workflow's Activities as a diagram and lets you edit the properties of each Activity.

This topic explains how to open a Workflow Job in the Workflow Visual Editor, read the canvas, edit Activity properties, view the Variables in scope, and save your changes.

Before You Begin​

  • You have access to JAMS with permissions to view and edit Jobs.
  • The Workflow Job already exists, and its workflow already contains the Activities you want to edit.
  • To add, remove, move, or connect Activities, or to declare Variables, use the Workflow Designer in the JAMS Desktop Client. See Workflow Jobs.

Workflow Visual Editor and Workflow Designer​

The JAMS Desktop Client and the JAMS Web Client each have their own editor for Workflow Jobs. Both edit the same workflow source, so a change saved in one appears in the other.

Workflow Designer (Desktop Client)Workflow Visual Editor (Web Client)
Where it opensSource tab of the Job Definition dialogSource tab of the Job
Activity listToolbox panel. Drag Activities into the Design panel.Activity Toolbox. A reference list of the available Activities. Activities cannot be dragged to the canvas.
Workflow structureAdd, remove, move, and connect ActivitiesRead only. The canvas lays out the existing Activities automatically.
Activity propertiesProperties panelActivity Edit Drawer, with fields grouped by category
VariablesDeclared and edited in the Variables panelShown read only in the Activity Edit Drawer for the selected Activity

For a description of each Activity, see Workflow Activities.

Opening a Workflow Job​

  1. Click Jobs from the main menu. The Jobs list opens.
  2. In the Folder Navigator, select the Folder that contains the Workflow Job.
  3. Click the Job name. The Job opens.
  4. Click Source. The Workflow Visual Editor opens and fills the tab.

The Workflow Visual Editor has three areas:

  • Activity Toolbox (left) - Lists the Activities available to the workflow, grouped by category.
  • Canvas (center) - Shows the workflow's Activities as nodes.
  • Activity Edit Drawer (right) - Opens when you click a node, and shows that Activity's properties and the Variables in its scope.

Activity Toolbox​

The Activity Toolbox lists every Activity available to Workflow Jobs on your JAMS Scheduler. Activities are grouped by category, such as Primitives, Control Flow, Flowchart, JAMS, Files, File Transfer, SQL, PowerShell, and Error Handling. The groups and Activities come from the Scheduler, so they can differ between installations, for example when JAMS add-ons are installed.

Each group starts expanded. Click a group's title to collapse or expand it.

Activities that work with a generic type, such as ForEach, Switch, and AddToCollection, are shown with a <T> suffix, for example ForEach<T>.

note

The Activity Toolbox is a reference list. You cannot drag an Activity from it to the canvas. To add an Activity to a workflow, use the Workflow Designer in the JAMS Desktop Client.

Working with the Canvas​

The canvas draws each Activity in the workflow as a node, and arranges the nodes automatically. A workflow whose top-level Activity is a Sequence is laid out from top to bottom. A workflow whose top-level Activity is a Flowchart is laid out from left to right. When the editor opens, the canvas zooms to fit the whole workflow.

Reading the Nodes​

NodeHow it appears
Container Activity, such as Sequence, Flowchart, or a JAMS container ActivityA box with a dashed border. Its header shows the Activity type and display name. The Activities it contains are drawn inside it.
ActivityA box with the Activity type on the first line and the display name on the second line.
FlowDecisionA diamond with the display name inside. Its two outgoing lines are labeled with the True and False branches.
FlowSwitchA rectangle with one outgoing line for each case and one for Default. Each line is labeled with its case.

Activities that work with a generic type show the type in use, for example ForEach<Int32>.

Some Activities fill a named property of their parent rather than being an ordinary child, such as the Then and Else branches of an If, or the Try, Catches, and Finally parts of a TryCatch. These nodes show the property name in bold capitals before the Activity type, for example THEN · and ELSE ·.

Moving Around the Canvas​

  • Scroll, or drag an empty part of the canvas, to pan.
  • Use the controls in the lower-left corner of the canvas to zoom in, zoom out, and fit the whole workflow in view.

Nodes cannot be moved or connected on the canvas. Click a node to open its properties.

Editing Activity Properties​

  1. On the canvas, click the Activity you want to edit. The Activity Edit Drawer opens. Its title is the Activity's display name.
  2. In Display Name, change the name shown on the canvas, if needed.
  3. Edit the Activity's properties. The drawer lists every property the Activity supports, including those still at their default value. Properties are grouped under category headings. Properties that have no category are listed under General, after the other groups. An Activity whose properties have no categories shows them as a single list without headings.
  4. Click Done. The drawer closes and the change is shown on the canvas.
    Click Cancel instead to close the drawer without keeping your changes.
  5. Click Save at the bottom right of the Workflow Visual Editor to save your changes to the Job.

Property Fields​

The type of field depends on the property:

PropertyField
Expression, such as a condition or a value calculated at run timeA multi-line field in a fixed-width font.
Boolean (True or False)A checkbox in front of the property name. Select it for True, and clear it for False.
Any other propertyA single-line text field.

A property that holds an expression always uses an expression field, even when the expression returns True or False. This keeps the expression intact.

Where the Activity provides a description for a property, it is shown below the field.

A few Activities have additional fields:

  • InitializeCorrelation - Correlation Data lists key and value pairs. Add or remove rows as needed.
  • InvokeMethod - Parameters lists the method's arguments in order, each with a Direction, Type, and Value. Generic Type Arguments lists the types for a generic method. Click Add to add a row, and click the remove icon to delete one. The Web Client does not check these against the method's signature.

The FTP and mail Activities, such as FTPSession, IMAPSession, and POPSession, list check boxes in the Security category that choose the SSL and TLS versions allowed. See TLS Settings for FTPS and Mail.

Variables Panel​

The Variables section at the bottom of the Activity Edit Drawer lists the workflow Variables the selected Activity can use, with their Name, Type, and Default Expression. These are the Variables declared on the Activity's container and on each container above it. When no Variables are in scope, the section shows "No variables declared in this scope."

The Variables section is read only. To add or change a workflow Variable, use the Workflow Designer in the JAMS Desktop Client.

note

Workflow Variables are declared inside a Workflow Job's source. They are not the same as JAMS Variables. See Variables.

Saving Your Changes​

Changes made in the Activity Edit Drawer are kept on the canvas until you save. Click Save at the bottom right of the Workflow Visual Editor to save them to the Job. Save is available only when there are unsaved changes.

If the save fails, an error message is shown above the canvas and your changes stay on the canvas.

Saving from the Workflow Visual Editor keeps the workflow's Variables, Arguments, and imported namespaces exactly as they were.

Additional Notes​

  • The Workflow Visual Editor edits the properties of existing Activities. To change the structure of a workflow, use the Workflow Designer in the JAMS Desktop Client.
  • Workflow Sequence and Flowchart Activities are not related to Sequence Jobs, which use the Sequence execution method and are edited in the Sequence Builder.