gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

ScenarioRunService

Service used to run scenario

Functions
create_cli_for_scenario @classmethod

Run a scenario in a non-blocking way through the cli.

scenario : Scenario
user : User
The user who is running the scenario. If not provided, the system will try the get the currently authenticated user
Return type : SysProc
create_cli_for_scenario_process @classmethod

Run a scenario in a non-blocking way through the cli.

scenario : Scenario
protocol_model : ProtocolModel
process_instance_name : str
user : User
The user who is running the scenario. If not provided, the system will try the get the currently authenticated user
Return type : SysProc
get_all_running_scenarios @classmethod
Return type : List
run_scenario @classmethod

Run the scenario

scenario : Scenario
Return type : Scenario
run_scenario_in_cli @classmethod

Method called by the cli sub process to run the scenario

scenario_id : str
run_scenario_process_in_cli @classmethod

Method called by the cli sub process to run the scenario

scenario_id : str
protocol_model_id : str
process_name : str
stop_all_running_scenario @classmethod
stop_scenario @classmethod
id : str
Return type : Scenario