-
Open the Run MQL window:
-
From the compass, select Collaboration and
Approvals.
-
In the navigation pane, click .
To run an MQL command, enter the command in the
MQL Command box and click Run
or press Enter.
-
To add effectivity to a type or relationship, enter the following MQL commands:
add property ENO_Effectivity on type <TYPE> value <EFFTYPE>;
add property ENO_Effectivity on relationship <RELATIONSHIP> value <EFFTYPE>;
<TYPE> is an object type.
<RELATIONSHIP> is a relationship.
<EFFTYPE> is the effectivity:
- Use
ContextDate to add the date effectivity.
- Use
Milestone to add milestone effectivity.
For example, to define date and unit effectivity for a requirements structure, enter
this command:
add property ENO_Effectivity on relationship "Sub-Requirement" value "ContextDate, Unit";
For example, to add milestone effectivity to the GBOM structure, enter this
command:
add property ENO_Effectivity on relationship "GBOM" value "Milestone";
-
To add the effectivity framework interface to the relationship or type, run the
following MQL commands:
modify interface 'Effectivity Framework' add relationship <Relationship Name>;
modify interface 'Effectivity Framework' add type <Type Name>;
<Relationship Name> is the name of the relationship that you
want to add.
<Type Name> is the name of the object type that you want to
add.
-
To add the relationship or type to the effectivity usage relationship:
modify relationship <Relationship Name> from add type <Type Name>;
modify relationship <Relationship Name> from add relationship <Relationship Name>;
<Relationship Name> is the name of the relationship that you
want to add.
<Type Name> is the name of the object type that you want to
add.
-
To add the effectivity URL, enter the following MQL command:
modify menu <Menu Name> href <VALUE>;
<Menu Name> is the name of the menu where you want to add the
object's effectivity command.
<HREF> is the HREF of the page that displays the object's
effectivity.
-
To create a command used for effectivity, enter the following MQL command:
add command <Command Name> description <STRING VLAUE> label <VALUE> setting Format <STRUCTURE> setting "Registered Suite" <SUIT> setting label <LABEL> setting categoryType <TYPE> setting keyword <KEYWORD>;
<Command
Name> is the name of the menu where you want to add the object's effectivity
command.
-
To add the command created in the previous step to the
Effectivity menu, enter the following MQL command:
modify menu <Menu Name> add command <command Name>;
<Menu Name> is the object type menu to which you want to add
the command.
<Command Name> is the command that you want to add to the
menu.
Result: When effectivity is defined for a type, the Effectivity Framework interface is
added to that type. This interface contains these attributes:
- Effectivity Types
- Effectivity Expression
- Effectivity Expression Binary
- Effectivity Compiled Form
- Effectivity Variable Indexes
- Effectivity Proposed Expression
- Effectivity Ordered Criteria Dictionary
- Effectivity Ordered Criteria
- Effectivity Ordered Impacting Criteria