Skip to content

Activities

The Workflow Manager contains the Standard Activities available in the System.Activities namespace, please visit System.Activities Namespace for more information.

Connection String

Common for many code activities is the need for a ConnectionString in order to connect to the MIKE OPERATIONS database.

The database connection string should contain the following information.

  • host: - The host name or IP address of the database service to connet to.
  • port: - The connection port of the database service.
  • database: - The database name.
  • dbflavour: - The database type (PostgreSQL, SQLite, MSSQL).

E.g. port=5432;database=dhidss;host=localhost;dbflavour=PostgreSQL.

DHI Domain Services Activities

DHI Domain Services comes with a long list of available code activities.

Please visit DHI Domain Services Activities for a description of the activities.

MIKE OPERATIONS Activities

MIKE OPERATIONS comes with a few dedicated code activities for interacting with MIKE OPERATIONS jobs and scenarios.

ExecuteJob

  • Purpose
    Execute a job in MIKE Workbench.
  • Description
    This Activity executes a job in the MIKE Workbench Job Manager
  • Properties

    Property Description
    ConnectionString Connection string to MIKE Workbench database E.g port=5432;database=dhidss;host=localhost;dbflavour=PostgreSQL
    Job Path or id to the job to execute.
    JobHost The job host to use for executing the job.
    JobUser MIKE Workbench User to run the scenario job under
    JobWorkspace MIKE Workbench Workspace to run the job under.
    MaxExecutionTime The maximum execution time of the job.
    Parameters Parameters of the job.
    Targets Target(s) to execute in the job.

RunScenario

  • Purpose
    Run a MIKE Workbench Scenario
  • Description
    This Activity executes a simulation of a scenario in the MIKE Workbench Scenario Manager
  • Properties

    Property Description
    ConnectionString Connection string to MIKE Workbench database. E.g port=5432;database=dhidss;host=localhost;dbflavour=PostgreSQL
    JobUser MIKE Workbench User to run the scenario job under
    JobWorkspace MIKE Workbench Workspace to run the scenario job under
    ScenarioPath Full Path of Scenario in MIKE Workbench Scenario Manager
    Approve Boolean to Approve the Scenario after it has run
    StartTime Start Date and Time of simulation
    EndTime End Date and Time of simulation
    TimeOfForecast Time Of Forecast of simulation
    SimulationPath Output Property of full path of simulation in MIKE Workbench Scenario Manager