Description

This script creates all possible connection constraints between the Source Component Type(s) and the Sink Component Type(s) that the user selects, for all selected Connection Type(s). This saves time when a user needs to create multiple Connection Constraints between a variety of Source and Sink Component Types for one or multiple Connection Type(s).


ABACUS Version Compatibility8*
Metamodel CompatibilityAny

*This script can also be used with older versions of ABACUS


To Use

Set the desired constraint enforcement mode in a variable at the top of the script, run the script, and follow the instructions on the dialog boxes that appear.


Pre-work

The script has one constant variable to assist with configuration. 


Variable NameDescription
ENFORCEMENT_MODE (Integer)Sets enforcement level of constraint.
0 = unchecked
1 = warned
2 = enforced


Example

  1. Leave the ENFORCEMENT_MODE variable at its default value (2) so that the constraints are enforced. 
  2. Run the Script. 
  3. Select the Connection Types to create constraints for. Click OK. (Figure 2)
  4. Select the Source Component Types for the constraints. Click OK. (Figure 3) 
  5. Select the Sink Component Types for the constraints. Click OK. (Figure 4) 
  6. A dialog box appears with a summary of the connection constraints generated. Click OK. (Figure 5) 
  7. See the Explorer Tree to view the newly created connection constraints. (Figure 1) 

Figure 1: Explorer Tree Before (left) and After (right) Running Script. 


Interfaz de usuario gráfica, Texto, Aplicación 
Descripción generada automáticamente

Figure 2: Selection of Connection Types. 


Interfaz de usuario gráfica, Texto, Aplicación 
Descripción generada automáticamente

Figure 3: Selection of Source Component Types. 


Interfaz de usuario gráfica, Texto, Aplicación 
Descripción generada automáticamente

Figure 4: Selection of Sink Component Types.


Interfaz de usuario gráfica, Texto, Aplicación 
Descripción generada automáticamente 

Figure 5: Summary of Created Connection Constraints.