Metis Smart Modeling - Rules
From Metis Documentation
(→Formulas) |
(→External Selection) |
||
Line 945: | Line 945: | ||
Click on add. A window opens where the new rule will be created. | Click on add. A window opens where the new rule will be created. | ||
In the “Type” field, select “External” from the dropdown list. In the “comment” field, enter a name for the rule. For example, “Total Service Time.” | In the “Type” field, select “External” from the dropdown list. In the “comment” field, enter a name for the rule. For example, “Total Service Time.” | ||
- | The goal of this example rule is to provide two inputs to an external program. The program will then sum up the value of the inputs and provide the output to a variable. | + | The goal of this example rule is to provide two inputs to an external program. The program will then sum up the value of the inputs and provide the output to a [[Metis_Smart_Modeling_-_Variables|variable]]. |
- | Click on the add button near the “input” field. A window opens where it is possible to select positions, variables, and attributes. Select “Attributes.” | + | Click on the add button near the “input” field. A window opens where it is possible to select positions, [[Metis_Smart_Modeling_-_Variables|variables]], and attributes. Select “Attributes.” |
Select “Installation time” from the list and confirm. | Select “Installation time” from the list and confirm. | ||
Repeat the same steps, but this time select “Project management” from the list. | Repeat the same steps, but this time select “Project management” from the list. | ||
Note: It is very important that the order in which the parameters are listed in the table is the same as within the external program. | Note: It is very important that the order in which the parameters are listed in the table is the same as within the external program. | ||
- | Click on the add button near the “Output” field. The same window from before opens, but it is only possible to select positions or variables. In this example a position is added. Select | + | Click on the add button near the “Output” field. The same window from before opens, but it is only possible to select positions or [[Metis_Smart_Modeling_-_Variables|variables]]. In this example a position is added. Select “[[Metis_Smart_Modeling_-_Variables|variables]]”. |
- | Search for the variable “$Service.” Select it and then confirm. | + | Search for the [[Metis_Smart_Modeling_-_Variables|variable]] “$Service.” Select it and then confirm. |
In the “Input” section, click on the icon next to the “External File Name” field. | In the “Input” section, click on the icon next to the “External File Name” field. | ||
A window opens. Click on the add button. The “select a file…” window opens. | A window opens. Click on the add button. The “select a file…” window opens. | ||
Line 989: | Line 989: | ||
{{Note | {{Note | ||
- | | The external application which is executed when running an external rule can be written in any programming language as long as it is configured to accept one or more input variables and only one output. Common consideration for executing the application are not supported by Xpert Technologies SA. | + | | The external application which is executed when running an external rule can be written in any programming language as long as it is configured to accept one or more input [[Metis_Smart_Modeling_-_Variables|variables]] and only one output. Common consideration for executing the application are not supported by Xpert Technologies SA. |
}} | }} | ||