EXARL Workflows

Creating Custom Workflows

  • EXARL also extends OpenAI gym’s environment registration to workflows

  • Workflows inherit from exarl.ExaWorkflow

Example:-

class workflowName(exarl.ExaWorkflow):
   ...

Workflows must include the following functions:

run()   # run the workflow
  • Register the workflow in ExaRL/workflows/__init__.py

from .registration import register, make

register(
   id='fooWorkflow-v0',
   entry_point='workflows.workflow_vault:FooWorkflow',
)

The id variable will be passed to exarl.make() to call the agent.

The file `ExaRL/workflows/workflow_vault/__init__.py` should include:

from workflows.workflow_vault.foo_workflow import FooWorkflow

where ExaRL/workflows/workflow_vault/foo_workflow.py is the file containing your workflow.