Triggers
  • 13 Aug 2024
  • 4 Minutes to read
  • PDF

Triggers

  • PDF

Article summary

A Trigger is a function that is initiated by an action occurring in your system.  As an example of a potential trigger, whenever you check-in a file, there may be a single activity or series of activities that must be performed.  The activities that you can define for a trigger are similar to those that you can define in a workflow. You can also add conditions to the triggers, just as we do in workflows.

1.1 How to Define a Trigger

  1. Select a job or folder in one of the following ways:

    • From the 12d Synergy Client application, select the job or folder from the job tree, on which you want to create a trigger.

    • From the 12d Synergy Administration application, search and select the required job from the Jobs tab, click the Edit button and select the required job or folder from the job tree.

  2. Right-click the folder and select the Edit folder option.
    The Edit a folder: <Folder Name> window is displayed.

  3. Select the Utilities tab > Triggers tab.  

  4. Click the button.
    The Edit a trigger window > Activities tab is displayed.

  5. From the Type list, select any one action for which you want to define a trigger.

  6. By default the action you select is displayed in the Name box. If you want to have a name of your choice, type it in the Name box.

  7. Enter a brief description of the trigger in the Description box.

  8. Select the Fail on activity error check box if you want the trigger to fail when errors occur while the activity is running.

  9. To define an activity, do the following in the Activities tab:

    1. Click the button.

      The Add a New Transition Activity window is displayed. All categories are displayed in this window.

    2. Select the required category from the left panel.  
      The activities related to the selected category are displayed in the right panel. A list of all the activities are listed here.

    3. Double-click the required activity or select it and click the Add button.
      The <activity name> panel is displayed to the right side in the Activities tab and a new entry, New <activity name> activity is displayed in the left panel. The same name is displayed in the Name box, by default. You can rename the activity in the Name box.

    4. If the triggered activity encounters an error because of which you want to fail the activity and not proceed any further, then select the Treat error as critical checkbox. Note that if there are any other activities that are a part of the trigger in subject, they are rolled back.

    5. Double-click each cell under the Value column and enter the required inputs. When you select a cell in the Value column, the entry for the cell is described below the input-value table in the application for your reference. They are also listed in this table of activities.

    6. Click the Save button.
      The activity that has to be performed when the trigger occurs is defined and saved.

      You can add multiple activities to the trigger by repeating step 9 of this procedure.

  10. To define a condition for the trigger, do the following in the Conditions tab:

    1. Click the button.

      The Add a New Transition Condition window is displayed.

    2. Select the category (General) from the left panel.
      All the conditions that you can choose from are displayed in the right panel of this window and are explained in the table below.

      Category

      Condition

      Description (parameters involved)the

      General

      Compare property

      The activities occur only when the comparison between two properties results in TRUE.

      Compare String Property

      The activities are occur only when the comparison between two properties of String data type results in TRUE.

      Is member of

      The activities occur only when the contact is a member of a mentioned group or is designated a mentioned role.

      Task

      The activities occur only if the task is in the mentioned state.

    3. Double-click the required condition or select it and click the Add button.
      The <condition name> panel is displayed to the right side in the Conditions tab and a new entry New <condition name> condition is displayed in the left panel. The same name is displayed in the Name box, by default. You can rename the condition in the Name box.

    4. Double-click each cell under the Value column and enter the required inputs. The value that needs to be entered is described below the input-value table (in the application) for your reference.

    5. If you want to negate the condition you are defining, select the Not? check box.

    6. Click the Save button.
      The defined condition is saved.

      You can add multiple conditions by repeating step 10 of this procedure.

      The Edit a folder: <Folder Name> window > Utilities tab > Triggers tab is displayed with the defined trigger. You can see the defined condition, if any, in the Conditions tab.

  11. Click the Save button.
    The defined trigger is saved.

If you want to edit a created trigger, select the trigger and click the Edit button in the Edit a folder: <Folder Name> window > Utilities tab > Triggers tab.


Click the Save button after you make the edits.

If you want to delete a trigger, select the trigger in the Edit a folder: <Folder Name> window > Utilities tab > Triggers tab, and click the as shown in image below.


Click the Save button after deleting the trigger.


Was this article helpful?

What's Next