Skip to main content

Create a single instance

An instance allows you to create a specific flow from a template. This is the best approach if you only need to create a few flows or want to enter the values directly in the dialog.

If you want to create many instances at once, use Create Instances from File instead. For automated runtime scenarios, use Create Dynamic Instances.

Dialog for creating a single instance

Create a Single Instance

  1. In the snap-in Templates or Flows, select the drop-down button drop-down button to create an instance.
  2. Select “Create a Single Instance...”.
  3. Assign a name to the flow, for example, “HomogenizerLine01.”
  4. Select the desired template.
  5. Select the desired location.
  6. Enter the values for the template variables.

The template from Creating Templates contains exactly one template variable Machine; in this example, we enter the value HomogenizerLine01. You do not change the content or structure of the flow itself in this dialog—you only assign values to the template variables.

warning

For template variables of the type TimeOffset—for example, the cycle of a time trigger—include the unit in the value: 500ms, 30s, 1h. Acceptable formats: [ for time values in template variables ](generate_instances_from_file.md#zeitangaben-in-vorlagenvariablen).

  1. Confirm by clicking “Create” or select OK and new to create the next instance immediately.
  2. Repeat the process for additional values, such as for Homogenizers 2, 3, 4, and 5.
  3. Put the instances into production.

Example of a created instance with template variable values

Subsequent Changes to Instances

The values of an instance’s template variables are displayed in the open flow to the left of the design area in a grid with the columns Name and Value; the name appears there in curly braces, just as it appears in the template fields. The grid is read-only when opened. Only the Edit template variables button below the grid unlocks the value column; it is then labeled Finish edit template variables and locks the editing again with the next click. The changed values take effect after the instance goes live.

To switch to an instance’s template, use the flow toolbar: Only for instances is there a button with the template icon and no label; its tooltip reads Navigate to template.” Clicking it opens the corresponding template in the Templates snap-in.

note

If you change the template later, all instances will be updated accordingly; for information on what happens to the values of their variables, see Changing a Template When Instances Already Exist . The instances must then be put back into production.

If a template is already selected and you choose New instance,” you’ll immediately see the template and its associated template variables.