Tools, Scripts and Jobs
Tools¶
MIKE Workbench contains a range of tools able to be executed on time series.
A range of these tools can be configured to be executed from the ribbon of MIKE OPERATIONS.
The output of the tool will be displayed as a chart in case the output of the tool is a time series.
Create and configure tools from the ’General Settings’ page by clicking the ‘Tools’ button.
The dialog will display the tools configured.
Click the ‘Add’ button to add a new tool configuration.
Click on the ‘Details’ button to configure the tool.
Item | Description |
---|---|
Active Activate the tool by checking this field. |
|
Id Id of the tool. The id is used as a reference. |
|
Name Name of the tool configuration shown in the ribbon |
|
Description Description of the tool. |
|
Tool Name Name of the tool to execute in MIKE Workbench. |
|
Execute on Time Changed Specify if the tool should be executed when the date time changes in the UI. When checked, the “Date Time Property Name” and the “Date Time Property Value” of the tool should be specified. This will animate (update) the chart shown for the tool when the current time changes. |
|
Date Time Property Name Specifies what property of the tool contains the current date time. The value specified in “Date Time Property Value” will be passed to the tool in this tool property. |
|
Date Time Property Value The value to pass to the tool in the selected “Date Time Property Name”, when the current date is changing. The current date time of type DateTime. Number of seconds after Time of Forecast. The current date time as a time span (type TimeSpan) after Time of Forecast. |
|
Ribbon Page Name The name of the ribbon page where the button of the tool is shown. |
|
Group Name Group name sets the group of the tool in the ribbon. |
|
Ribbon Item Type Ribbon item type controls the type of control added to the ribbon. A simple check item A check item added to a gallery of items. A menu item added to a menu. The path of the menu is specified in the Group name field, separating each sub menu entry with a vertical bar ‘|’. E.g. “My Group|Menu button name|First parent menu|Second parent menu”. Images of each menu item can be specified by adding Feature Types for each sub menu. A simple item like “Check Item” without “check mark” functionality. A menu item like “Menu Check Item” without “check mark” functionality. The tool is not shown in the ribbon. |
|
Resource Image Name Resource images are a list of built-in images for tools. Clicking the dropdown will display the available images. The selected image will be used where the feature type is displayed, e.g. in the ribbon, in tooltips and the Table View Images with a ‘_32’ postfix have an initial size of 32x32 pixels. Images without a postfix have a size of 16x16 pixels. The initial size has an impact on the quality of the image when displayed in MIKE OPERATIONS. |
|
Document Image Path Document Image Path is for additional user images placed in the Document Manager of the MIKE Workbench. Images specified in this path will overwrite the image specified in the Resource Image Path. |
|
Theme Select a Theme for the tool. When selecting themes in the ribbon, the ribbon item of the tool will be displayed if it belongs to the theme selected. If no theme is specified for the tool, the ribbon item of the tool will be displayed no matter what theme is selected in the ribbon. |
|
Show on Web Check box indicating whether the tool is available in MIKE OPERATIONS Web. Note that tools are currently not supported in MIKE OPERATIONS Web. Use jobs for executing tools. |
|
Chart Type The type of the chart in the Chart View. |
|
Color Color is the color of the line or bars (for step accumulated time series) of the time series. |
|
Line Style Line Style is the line style of the time series in the Chart View. |
|
Marker Style The style of the point marker in the Chart View. |
|
Size Size is the line thickness of lines or marker in the Chart View. |
|
Marker Color Style Configure the marker color style. The marker will have the same color as the line. The marker will have the color as the threshold at the time where the marker is placed on the chart. The marker will have a fixed color defined in the “Custom Marker Color” property. |
|
Custom Marker Color Color of the marker when “Custom Marker Color” is selected in “Marker Color Style”. |
|
Chart Area Index The chart area index, defines in what chart area the time series should be displayed. The index will not define the order of the chart areas, as the order is defined by the order of the time series in the list of time series. |
|
Show Vertical Lines Shows vertical lines in the chart for every x-value. The marker color defines the color of the vertical line. Vertical lines are applied when there is only one time series in the chart area. |
|
Chart Area Index X-axis labels and a fixed x-axis grid are shown for every x-value of the time series. Additional label lines are added if comments have been specified on the time steps. To have more label lines, the comment of the time step should be separated by a semicolon. Note that vertical lines are applied when there is only one time series in the chart area. |
|
Properties The properties tab page will show the properties of the tool. Tool properties can be changed and is saved in MIKE Workbench with the name of the configuration and the id of the tool configuration. Tool property values support use of placeholders so that values are set when executing the tool. Note that placeholders are only supported for string properties and when the tool allows specification of placeholder tags in the property. Some tools run validation when typing the property value. In this case placeholders are not supported. |
Tool Property Value Placeholders¶
Tool property values support using placeholders.
Tool property value placeholders all have the format [Table.Field]. For (Empty) only the field name is specified. Empty refers to the first station in selected list of stations.
The following is a sample of setting a tool property value with placeholders:
/Simulations/[Configuration.Name]
Static .NET placeholders are supported e.g. [System.DateTime.Now].
Note that placeholders are case sensitive.
The table below shows the available placeholders.
Table | Field | Description |
---|---|---|
(Empty) | Id | Id of the first feature. |
Name | Name of the first feature. | |
Description | Description of the first feature. | |
Value | Value of the first feature. | |
Unit | Unit of the first feature. | |
Configuration | Name | The configuration name. |
Description | Description of the configuration. | |
CurrentDateTime | Date time used for generation. | |
ScenarioMode | True if in scenario mode. | |
ScenarioName | Scenario name in scenario mode. | |
ModelSetupPath | The full path to the model setup. | |
ForecastScenarioName | The name of the forecast scenario. | |
GeneralSettingsSpreadsheetPath | The full path of the general settings spreadsheet path. | |
ContactSpreadsheetPath | The full path to the contact spreadsheet. | |
ScenarioTemplatesSpreadsheetPath | The full path to the scenario template spreadsheet path. | |
CheckoutScenarioPath | The path where scenarios in scenario mode is placed. | |
SourceCoordinateSystem | The map source coordinate system. | |
FavoriteBackgroundMap | Name of the favorite background map. | |
Simulation | Name | Name of the simulation. |
Status | Status of the simulation. | |
SimulationStartDate | The simulation Start Date. The placeholder is not changed if no simulation is available. | |
SimulationEndDate | The simulation end date. The placeholder is not changed if no simulation is available. | |
TimeOfForecast | The time of forecast. The placeholder is not changed if no simulation is available. | |
TimeOfSimulationRun | The time of simulation run. The placeholder is not changed if no simulation is available. | |
WarningLevel | Name | Name of the threshold. |
Color | Color of the threshold. | |
Value | Threshold value exceeded. | |
ObservationPeriod | Id | The Id of the Observation period. |
Name | The name of the observation period. | |
Description | Description of the observation period. |
Scripts¶
MIKE Workbench contains a script manager for making Python scripts. These scripts can be configured to be executed from the ribbon of MIKE OPERATIONS.
Script configured must NOT require parameters to be executed.
Create and configure scripts from the General Settings page by clicking the ’Scripts’ button.
The dialog will display the scripts configured.
Click on the ‘New’ button to add a new script configuration.
Click on the ‘Details’ button to configure the script.
Item | Description |
---|---|
Active Activate the script by checking this field. |
|
Id Id of the script. The id is used as a reference. |
|
Name Name of the script configuration shown in the ribbon. |
|
Description Description of the script. |
|
Script Name Name of the script in MIKE Workbench to execute. |
|
Ribbon Page Name The name of the ribbon page where the button of the script is shown. |
|
Group Name Group name sets the group of the script in the ribbon. |
|
Ribbon Item Type Ribbon item type controls the type of control added to the ribbon. A simple check item A check item added to a gallery of items. A menu item added to a menu. The path of the menu is specified in the Group name field, separating each sub menu entry with a vertical bar ‘|’. E.g. “My Group|Menu button name|First parent menu|Second parent menu”. Images of each menu item can be specified by adding Feature Types for each sub menu. A simple item like “Check Item” without “check mark” functionality. A menu item like “Menu Check Item” without “check mark” functionality. The script is not shown in the ribbon. |
|
Resource Image Name Resource images are a list of built in images for scripts. Clicking the dropdown will display the available images. The selected image will be used where the feature type is displayed, e.g. in the ribbon, in tooltips and the Table View Images with a ‘_32’ postfix have an initial size of 32x32 pixels. Images without a postfix have a size of 16x16 pixels. The initial size has an impact on the quality of the image when displayed in MIKE OPERATIONS. |
|
Document Image Path Document Image Path is for additional user images placed in the Document Manager in MIKE Workbench. Images specified in this path will overwrite the image specified in the Resource Image Path. |
|
Theme Specify the theme where the script should be shown. If no theme is specified, the script is shown on all themes. |
|
Show on Web Check box indicating whether the script is available in MIKE OPERATIONS Web. |
Jobs¶
Job links can be added to the ribbon of MIKE OPERATIONS.
Create and configure jobs from the General Settings page by clicking on the ’Jobs’ button.
The dialog will display the configured jobs.
Click on the ‘New’ button to add a new job configuration.
Click on the ‘Details’ button to configure the job.
Item | Description |
---|---|
Active Activate the job by checking this field. |
|
Id Id of the job. The id is used as a reference. |
|
Name Name of the job configuration shown in the ribbon |
|
Description Description of the job. |
|
Job Path Name of the job in MIKE Workbench to execute. |
|
Execution Type The execution of a job can be performed locally or remotely. |
|
Host Name The name of the computer where the job will be executed. This field is only enabled when the Execution Type = ‘Remotely’. |
|
Targets Select the targets to execute on the job. If no targets are specified, the Default Target is used. |
|
Allow Execute Checking this checkbox will allow the job to be executed from the ribbon of MIKE OPERATIONS. Click on the Execute button to run the job. |
|
Show Status Checking this checkbox, will show the status of previous job runs in the ribbon of MIKE OPERATIONS. |
|
Ribbon Page Name The name of the ribbon page where the button of the job is shown. |
|
Group Name Group name sets the group of the job in the ribbon. |
|
Ribbon Item Type Ribbon item type controls the type of control added to the ribbon. For jobs, only “Item” is supported, as the job execution and job status is displayed as a dropdown button in the ribbon. |
|
Resource Image Name Resource images are a list of built in images for jobs. Clicking on the dropdown will display the available images. The selected image will be used where the feature type is displayed e.g. in the ribbon, in tooltips and the Table View. Images with a ‘_32’ postfix have an initial size of 32x32 pixels. Images without a postfix have a size of 16x16 pixels. The initial size has an impact on the quality of the image when displayed in MIKE OPERATIONS. |
|
Document Image Path Document Image Path is for additional user images placed in the Document Manager in MIKE Workbench. Images specified in this path will overwrite the image specified in the Resource Image Name. |
|
Theme Specify the theme where the job item should be shown. If no theme is specified, the job item is shown on all themes. | |
Show on Web Check box indicating whether the job is available in MIKE OPERATIONS Web. |
Properties¶
The properties dialog shows the properties of the job. Job properties can be changed and are saved in MIKE Workbench with the name of the configuration and the id of the job configuration.
Job property values support using placeholders so that values are set when executing the Job.
Note that placeholders are only supported for string properties and when the job allows specifying placeholder tags in the property.
Some jobs are doing validation when typing the property value. In this case placeholders are not supported.
Click on the ‘Properties’ button to configure the properties of the job.
Item | Description |
---|---|
Name The name of the property on the job in the job manager in MIKE Workbench. |
|
Property Type The type of the property. The type is for making input controls for specifying the properties when executing the job. The job properties support the following input control types: Will show a simple text input control. Will show a check box. Will show a text box where the e-mail adress Will show a text box where the url will be shown as a link. Will show a combo box with the values of the list. Specify the list values in the “Value” column as a comma separated string. Coordinates Job properties of type coordinates, is handled differently in the Desktop version and in the web version. In the desktop version, the property will be a text field with an icon indicating that the field is for coordinates. Coordinates can in this case be written or pasted here. It is possible to copy coordinates of a specific point on the map, using the context menu of the map. On MO Web, the coordinates field will provide a button for getting the coordinates when clicking the map. |
|
Value The value of the property. The value supports placeholders. By default, the value will be taken from the value of the job property in the job manager in MIKE Workbench. For Lists, specify a comma separate string for the items in the list. |
Job Property Value Placeholders¶
Job property values support using placeholders.
Job property value placeholders, all have the format [Table.Field] for (Empty) only the field name is specified though. Empty refers to the first station in selected list of stations.
The following is a sample setting a job property value with placeholders.
/Simulations/[Configuration.Name]
Static .NET placeholders are supported e.g. [System.DateTime.Now].
Note that placeholders are case sensitive.
The table below shows the available placeholders.
Table | Field | Description |
---|---|---|
(Empty) | Id | Id of the first feature. |
Name | Name of the first feature. | |
Description | Description of the first feature. | |
Value | Value of the first feature. | |
Unit | Unit of the first feature. | |
timestep | The current date time. | |
Configuration | Name | The configuration name. |
Description | Description of the configuration. | |
CurrentDateTime | The current Date time selected. | |
ScenarioMode | True if in scenario mode. | |
ScenarioName | Scenario name in scenario mode. | |
ModelSetupPath | The full path to the model setup. | |
ForecastScenarioName | The name of the forecast scenario. | |
GeneralSettingsSpreadsheetPath | The full path of the general settings spreadsheet path. | |
ContactSpreadsheetPath | The full path to the contact spreadsheet. | |
ScenarioTemplatesSpreadsheetPath | The full path to the scenario template spreadsheet path. | |
CheckoutScenarioPath | The path where scenarios in scenario mode is placed. | |
SourceCoordinateSystem | The map source coordinate system. | |
FavoriteBackgroundMap | Name of the favorite background map. | |
Simulation | Name | Name of the simulation. |
Status | Status of the simulation. | |
SimulationStartDate | The simulation Start Date. The placeholder is not changed if no simulation is available. | |
SimulationEndDate | The simulation end date. The placeholder is not changed if no simulation is available. | |
TimeOfForecast | The time of forecast. The placeholder is not changed if no simulation is available. | |
TimeOfSimulationRun | The time of simulation run. The placeholder is not changed if no simulation is available. | |
ObservationPeriod | Id | The Id of the Observation period. |
Name | The name of the observation period. | |
Description | Description of the observation period. |
Web¶
Web links can be added to the ribbon of MIKE OPERATIONS.
Create and configure web links from the General Settings page by clicking on the ‘Web’ button.
The dialog will display the web links configured.
Click on the ‘New’ button to add a new web link to the configuration.
Click on the ‘Details’ button to configure the web links.
Item | Description |
---|---|
Active Activate the web link by checking this field. |
|
Id Id of the web link. The id is used as a reference. |
|
Name Name of the web link shown in the ribbon. |
|
Description Description of the web link. |
|
Web browser Specify the web browser used. Open the default web browser in a new window. Open the web link in an embedded web browser (Internet Explorer), so that the web browser can be docked. |
|
Url The web address of the web page to show. |
|
Ribbon Page Name The name of the ribbon page where the button of the web link is shown. |
|
Group Name Group name sets the group of the web link in the ribbon. |
|
Ribbon Item Type Ribbon item type controls the type of control added to the ribbon. A simple check item A check item added to a gallery of items. The path of the menu is specified in the Group name field, separating each sub menu entry with a vertical bar ‘|’. E.g. “My Group|Menu button name|First parent menu|Second parent menu”. Images of each menu item can be specified by adding Feature Types for each sub menu. A simple item like “Check Item” without “check mark” functionality. A menu item like “Menu Check Item” without “check mark” functionality. The script is not shown in the ribbon. |
|
Resource Image Name Resource images are a list of built in images for web links. Clicking on the dropdown, will display the available images. The selected image will be used where the feature type is displayed, E.g. in the ribbon, in tooltips and the Table View Images with a ‘_32’ postfix have an initial size of 32x32 pixels. Images without a postfix have a size of 16x16 pixels. The initial size has an impact on the quality of the image when displayed in MIKE OPERATIONS. |
|
Document Image Path Document Image Path is for additional user images placed in the Document Manager in MIKE Workbench. Images specified in this path will overwrite the image specified in the Resource Image Path. |
|
Theme Specify the theme where the web link should be shown. If no theme is specified, the web link is shown on all themes. |