Overview

The create operator allows you to create items based on an incoming item or items.

Input

One or more items based on a specific design or design interface.

Output

New items from the incoming items.

Configuring a create item node

To configure a create item node:

  1. Add an action and navigate to the Actions tab of the Create action page.
  2. Select the Workflow Action: Create option. The option details are displayed in the item details page.

alt text

Use the following default fields to define the item:

  • Design - Select this field to display a dialog that allows you to select a design that will define the item type that you are creating.

  • Collection - Select this field to display a dialog that allows you to select the collection that the item belongs to. The list of available collections is dependent on the design that you selected.

  • Colour - When you select this field you can choose the colour applied to the icon within Alloy. This colour acts as the default colour for any layer style associated with this design, see Layer Styles.

  • Icon - When you select this field you can choose an icon from the built in library within Alloy, see Selecting Icons. The icon is inherited by all items that are created using this design.

  • Parents - This allows you to link the created item to a parent item. For example, creating a job item can be linked with a defect item as a parent. The job item is then linked to the same asset that the defect is related to and uses the asset location to place the job. This removes the need to specify the location in the action.

  • Parents link attribute - This field is only available when you select a parent item and allows you to select the link attribute of the parent.

  • Single instance - When you enable this option the action only creates one instance of the item. The create item node is executed irrespective of the output from the preceding node, which can be no value, one value or many values. For example if your preceding node creates multiple items (say jobs) and you need to associate them with a project, this allows you to create one instance of the project item to which all the jobs are linked, otherwise you would create multiple project items.

    Selecting this link displays a dialog that allows you to enable the setting.

alt text

  1. Any additional fields that are displayed vary depending on the design that you selected. When you complete the fields you can use the Validate button to check that all the mandatory fields have valid values. A notification message indicates if your values are valid.

alt text

  1. When you have completed all the necessary fields and the entries have been validated, select Save. This returns you to the workflow editor.