-
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, run the following MQL commands:
add property ENO_Effectivity on type <TYPE> value <EFFTYPE>;
add property ENO_Effectivity on relationship <RELATIONSHIP> value <EFFTYPE>;
where:
<TYPE>
is an object type.<RELATIONSHIP>
is a relationship.<EFFTYPE>
is the effectivity being defined:- 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, run this command:
add property ENO_Effectivity on relationship "Sub-Requirement" value "ContextDate, Unit";
For example, to add Milestone effectivity to the GBOM structure, run 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>;
where:<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>;
where:<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, run the following MQL command:
modify menu <Menu Name> href <VALUE>;
where:<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, run 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>;
where <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, run the following MQL command:
modify menu <Menu Name> add command <command Name>;
where:<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.
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