Designing flows for use with SwitchClient

About flows in Switch

SwitchClient interacts with certain elements of one or more flows that have been designed with Switch. To design a flow, the Switch user drags flow elements (such as Submit points, processors and folders) on the canvas and connects them according to the desired job flow. After configuring appropriate property values for each flow element (and in some cases, the connections), the Switch user can activate the flow for execution. From then on, Switch automatically moves and processes jobs along the flow.

If you're new to Switch, we recommend having a look at the Switch Quick Start Guide (available on the Enfocus website).

SwitchClient flow elements

Submit points and Checkpoints are flow elements designed for use with SwitchClient. For more information, refer to Submit point, Checkpoint and Checkpoint via mail.

Note:
  • Make sure the flows you want to use with SwitchClient are active. A SwitchClient user with the appropriate access rights can access Submit points, Checkpoints and jobs in inactive flows but the jobs will not move along the flow.
  • SwitchClient interacts only with the Switch Server, not with the Switch Designer. Users can safely quit the Designer without disturbing the SwitchClient operations as long as the Switch server is running (see When exiting the flow designer).

Example flow

Here's a flow example as it is shown in the Switch canvas:





Since this example focuses on SwitchClient features, there is a lot of interaction with human operators and little automated processing (other than moving jobs around). Real-life flows would probably include processing steps such as preflight or color conversion.

The Submit point to the left (Creatives) allows submitting jobs to the flow in a controlled way using SwitchClient. The user's name is automatically remembered; multiple users can use the same Submit point since each user is identified to Switch through his/her user name and password. The "Set User Name" script serves to add a user name for jobs submitted through a regular hot folder (Henry).

The first Checkpoint (Visual Proof) holds the incoming jobs for inspection by a SwitchClient user. The names of the output connections (Approve and Decline) are displayed in SwitchClient as buttons. Pressing one of these buttons moves a job along the corresponding connection.

The second Checkpoint (Output Jobs) allows a SwitchClient user to decide how the jobs will be stored or processed. This Checkpoint is configured to allow multiple outputs at the same time; for example both "Store in DAM" and "Create Proof".

Setting up a Submit point

When setting up a Submit point (Creatives in the example flow), you can configure it in such a way that the SwitchClient user must enter one or more data fields before submitting a job to this Submit point. The entered values are associated with the job as metadata.

To enable this option, in the properties of the Submit point element:
  1. Set Enter metadata to Yes.
  2. Double-click the Metadata fields property and define the metadata fields for which the user should provide a value, for example a valid Job ID (labeled as "Name").
  3. The Dataset name field is completed automatically. This is the name of the dataset that will be created containing the contents of the metadata fields entered by the user.

    For a full description, refer to Defining metadata fields.

The following screenshot shows how the SwitchClient user will have to enter the data configured in the Submit point (in the "Name" field).





Setting up a Checkpoint

Similarly, when setting up a Checkpoint (Visual Proof and Output Jobs in the example flow), you can ask Switch to display additional information about the job, and the SwitchClient user may be asked to enter additional data fields before acknowledging a job. (This is the case if the Enter and display metadata property is set).

Furthermore, the output connections of the Checkpoint determine the look of the buttons shown to the SwitchClient user for acknowledging a job.

For example, the Visual Proof Checkpoint in the example flow is configured in such a way that SwitchClient shows two buttons; clicking one of the buttons causes the job to move along the corresponding connection. This is the default behavior of a Checkpoint if two output connections are defined and no metadata has been enabled.





On the other hand, the Output Jobs Checkpoint in the example flow is configured so that SwitchClient shows a list of options; the user can select more than one option, causing a duplicate of the job to be sent out over each of those connections. This is possible if the Allow multiple outputs property is enabled.





For an overview of all properties, refer to Checkpoint.

Metadata in SwitchClient Submit points and checkpoints - default values

When defining the default values for the metadata fields, you can use a number of variables that automatically retrieve information from the SwitchClient that is used to submit or check jobs. As a consequence, this information does not need to be entered explicitly by the SwitchClient user; it can even be sent along with the job without being displayed to the SwitchClient user.

The variables concerned are the so-called Connection variables:
  • [Connection.Email]
  • [Connection.FullUserName]
  • [Connection.IP]
  • [Connection.UserName]
If you use those as default values for your metadata fields, they will be replaced automatically with their actual values.
To make this happen, "bidirectional communication" is established between Switch and SwitchClient:
  1. SwitchClient requests the default value of the metadata fields, being a connection variable.
  2. Switch Server sends the connection variable e.g. [Connection.IP] to the SwitchClient.
  3. SwitchClient replaces the variable with its actual value and sends the actual value along with the job back to Switch Server.

Example: Suppose two SwitchClient are connected to the same Switch Server and both can submit files to a particular Submit point. To keep track of which SwitchClient submits which jobs, you could configure a metadata field "IP address" and set the default to [Connection.IP]. When a file is submitted, the IP address of the SwitchClient concerned is entered automatically and sent along with the job. It depends on the metadata field properties whether or not this field (with the actual value) is shown to the user and/or it can be changed.

Re-using metadata fields from a Submit point in a Checkpoint

Switch provides an easy way to re-use the metadata fields defined for Submit points in a particular Checkpoint.

To re-use an existing metadata field, simply click the button (instead of the green plus button) in the Define metadata fields dialog (as shown below).





You can now select the metadata fields you want to re-use (based on the Submit points defined for the current flow). Note that the added metadata fields have only two editable options: Read only (yes/no) and Display metadata field (yes/no). The other options are grayed out.

Remark: Although all Submit points present in the flow are shown, you must keep in mind that only the Submit point that is used for the job will send metadata. For example, as in the example below all jobs in Checkpoint 1 come from Submit point 1, it does not make sense to add metadata from Submit point 2 to Checkpoint 1 (and vice versa).

If configured incorrectly, the connection variables (if used) will not be replaced with the actual values (users will see e.g. [Connection.UserName]) and metadata fields for which there is no value entered will be blank.

If configured correctly, when checking the Alert job in SwitchClient, the connection variables (if used) will be replaced with the actual values (e.g. EAW13DL399 instead of the [Connection.IP]) and the metadata fields that were completed at the time of submission will show the entered data.