Configuring Reactions

Scenario: Reactions are automations programmed into Desigo CC that execute a command, or a series of commands, when specified conditions occur on the site.

 

Reference: For background information, see the reference section.

 

Workflow diagram:

 

 

Prerequisites:

  • You have the license and application rights to configure reactions.
  • System Manager is in Engineering mode.
  • System Browser is in Application View.

 

Steps:

1 – Set Up Reactions Subfolders

You can store reactions directly in the main Reactions folder, or you can create a structure of subfolders under it to organize your reactions.

  1. Select Applications > Logics > Reactions or a subfolder under it.
  • The Reaction Editor tab displays.
  1. Click New .
  1. In the New object dialog box, enter a name and description.
  1. Click OK.
  • The new folder is added to System Browser.
  1. Repeat the preceding steps for any other folders you want to add.

 

2 – Open the Reaction Editor

You can select an existing reaction to modify, or begin configuring a new one from scratch.

  • Do one of the following:
  • To create a new reaction, select Applications > Logics > Reactions or a [subfolder] under it.
  • To modify an existing reaction, select Applications > Logics > Reactions > […] > [reaction].
  • The Reaction Editor tab displays.

 

3 – Configure the Input Triggers of the Reaction

You must configure at least one input trigger for the reaction—otherwise it will never execute.
NOTE: In distributed systems, if the reaction works across multiple systems, configure it on the system where the initiating condition occurs so that the trigger is local. You can then configure the output to happen on other systems. For details, see Reactions in Distributed Systems.

  1. In the Reaction Editor tab, open the Triggers expander. Here you can configure in what situations you want the reaction to execute. For details, see Input Triggers of a Reaction. Do one or more of the following:
  • In the Events expander you can specify the combination of events that will trigger the reaction. For details, see Events Conditions.
  • In the Values and States expander, you can and specify the field conditions that will trigger the reaction. For details, see Values and States Conditions.
  1. Use the AND/OR drop-down list at the top to specify the Boolean logic between the triggers: Time and Organization Mode conditions must be true. Events AND/OR Values and States conditions must be true.

 

4 – Configure the Output Instructions of the Reaction

You must configure at least one Action output instruction to be able to save the reaction.

  1. In the Reaction Editor tab, open the Output expander. Here you can configure what commands will be executed when the reaction is triggered (Action). You can also optionally configure commands to execute when it is not triggered (Else Action). For details, see Output Instructions of a Reaction.
  1. In System Browser, select the Manual navigation check box.
  1. In the Output expander, open the Action and Else Action expanders.
  1. To add a new instruction to the reaction output:
    a. Drag the desired target object from System Browser into the empty area inside the Action or Else Action expander. This will cause a new row to be created.
    b. Configure the other fields in the row to set what Property of the Target objects will be affected, and the Command to send.
    c. (Optional) Filter by Discipline/Subdiscipline and Type/Subtype. This will cause the command to only be sent to target objects that match those criteria.
    d. (Optional) In the Initial Delay field, set an initial delay before the command is sent out.
  1. Repeat step 4 above to add other instructions.
  1. To add a macro instruction to the reaction output:
    a. In System Browser, expand Applications > Logics > Macros.
    b.
    From here, drag the desired macro into the empty area of the Scope/Target column in the Action expander or Else Action expander. This will cause the Action expander or Else Action to display a new instruction (row) which invokes the selected macro instruction.
  1. Repeat step 6 above to add other macro instructions.
  1. (Optional) Use the Move Up and Move Down buttons to change the order of the instructions. Use Delete to remove any unwanted instructions.
5 – Enter Notes and Save the Reaction
  1. In the Reaction Editor tab, open the General Settings expander. For details, see General Settings of a Reaction.
  1. In the Notes field, enter a description of what this reaction does.
  1. Click Save or Save As .
  1. (Only for Save As) In the Save Object As dialog box:
    a. Select the main Reactions folder or any subfolder under it.
    b. Enter a name and description.
    c. Click OK.
  • Newly created reactions are enabled by default. To disable a reaction to prevent it from executing for the time being, see Enabling or Disabling Reactions.