wei.core.interfaces.simulate_interface

Handling simulated execution for steps in the RPL-SDL efforts

Functions

silent_callback(step, **kwargs)

prints a single step from a workflow using no messaging framework

pydantic model wei.core.interfaces.simulate_interface.SimulateInterface

A simulated interface for testing WEI workflows

Show JSON schema
{
   "title": "SimulateInterface",
   "description": "A simulated interface for testing WEI workflows",
   "type": "object",
   "properties": {
      "name": {
         "title": "Name",
         "type": "string"
      }
   },
   "required": [
      "name"
   ]
}

Config:
  • use_enum_values: bool = True

Fields:

Validators:

static config_validator(config: Dict[str, Any]) bool

Validates the configuration for the interface

static get_state(module: Module, **kwargs: Any) Dict[str, Any]

Returns the current state of the module

static send_action(step: Step, module: Module, **kwargs: Any) Tuple[str, str, str]

Pretends to execute a single step from a workflow, really just prints the step

wei.core.interfaces.simulate_interface.silent_callback(step: Step, **kwargs: Any) Tuple[str, str, str]

prints a single step from a workflow using no messaging framework

Parameters:

step (Step) – A single step from a workflow definition

Returns:

  • response (str)

  • A dummy string