Automation Orchestrator script environments
Automation Orchestrator
script environmentsYou can now add modules and libraries for use in your
Automation Orchestrator
scripts as dependencies directly from
the Automation Orchestrator
Client
.In previous releases of
Automation Orchestrator
you could only add dependencies to your scripts by
adding them to a ZIP package. You can now add modules and libraries you want to use
as dependencies in your scripts by creating an environment directly from the
Automation Orchestrator
Client
. Your environment can include multiple modules and
libraries for use in your scripts.In this use case, you are creating an
lodash environment that you can use for your Node.js scripts in
Automation Orchestrator
.Similarly to other
Automation Orchestrator
objects such as workflows
and actions, environments can be exported to other Automation Orchestrator
deployments as part of a package. - Log in to theAutomation OrchestratorClient.
- Navigate to, and clickNew Environment.
- Under theGeneraltab, enter a name for your environment.
- Enter a description, version number, tags, and group permissions for the action.The ID is generated automatically after the environment is created.
- Set the runtime environment and add dependencies and dependency variables.
- Select theDefinitionstab.
- UnderRuntime Environment, verify that Node.js is selected.
- Edit the memory limit and timeout properties.
- UnderDependencies, clickAdd, and enter the following values:NamelodashVersion4.17.21
- ClickAdd.
- Add environment variables.
- To finish creating your new script environment, clickCreate.
- After the environment is created, select theDownload Logstab on the environment editor page and validate that the lodash library is downloaded successfully.
You can now use lodash in workflow
scripting tasks or actions by selecting the environment from the
Runtime
Environment
drop-down menu of your workflow scripting schema element
or Automation Orchestrator
action.