Skip to main content

Automate

The Automate Execution Method lets you use JAMS to run Workflows in Automate Plus or Automate Ultimate. You can then monitor the Job from the Monitor view. This integration does not need to be enabled in the JAMS installer.

A Workflow in Automate can contain variables. When the Job runs, JAMS reads the Workflow's variables from Automate and passes each one to the Workflow with its initial value. To override the value of a Workflow variable, add a Parameter to the Job with the same name as the variable and set its value. A Parameter the Job inherits from its Folder also overrides a variable with the same name.

note

JAMS matches Parameters only to the variables defined at the Workflow level (Shared Variables). Variables on the individual Tasks inside the Workflow are not matched.

note

The Web Client does not add the Workflow's variables to the Job's Parameters tab when you select a Workflow, and it does not clear or replace the Job's existing Parameters. Only Parameters whose names match a Workflow variable are passed to Automate.

Before You Begin​

Before you set up the integration with Automate, ensure you have the following:

  • The Automate REST API enabled within Automate. See the Automate API documentation in the Community Portal for more information.
  • The port for accessing the Automate REST API. If you do not change it, the default port, 9708, is used.
  • The name or Id of the Automate Workflow.
  • A JAMS Agent for Windows, if the Job will run on an Agent rather than the JAMS Scheduler. See JAMS Agent for Windows for more information.

Creating Credentials​

You need two Credentials in JAMS to run an Automate Job:

  • A Credential that connects to the Automate REST API. It stores the username and password of the Automate account. Its Access Control Entry (ACE) must include the Get Password permission.
  • A Credential that runs the Job in JAMS. This Credential must be a valid user on the Windows machine.

To retrieve the list of Workflows from Automate when you create the Job, the user creating the Job also needs Inquire access to Credential Definitions. See Credential Definitions for more information.

Adding the Automate Credential​

Adding an ACE is available only for federated users. If you log in with the admin/service account, you cannot add ACEs. See Credentials for more information.

  1. Click Environment from the main menu.
  2. Click Credentials.
  3. Click Add. The Add a New JAMS Credential drawer opens.
  4. In the Display Name field, enter a name for the Credential.
  5. In the Logon Username field, enter the username of the Automate account. If you leave it blank, it defaults to the Display Name.
  6. In the Password and Reenter Password fields, enter the password for that account.
  7. Click Save & Continue. The Credential opens for editing.
  8. Click the Security tab.
  9. Click ADD to add an ACE.
  10. Search for the user account to add, and then click Select.
  11. Click the down arrow for the username and select the Get Password checkbox, along with any other permissions the account needs.
  12. Click Save.

Adding a Credential for Running the JAMS Job​

  1. Click Environment from the main menu.
  2. Click Credentials.
  3. Click Add. The Add a New JAMS Credential drawer opens.
  4. In the Display Name field, enter a name for the Credential.
  5. In the Logon Username field, enter the username for the Credential.
  6. In the Password and Reenter Password fields, enter the password.
  7. Click Save & Return.

Creating a Job in JAMS for Automate​

Ensure the user creating the Job has permissions to the Automate Credential that the Job references.

Each tab on the Job is saved separately. Save your changes before you move to another tab, or they are discarded.

  1. Click Jobs from the main menu.

  2. Click a Folder in the Folder Navigator where the Job will be saved.

  3. Click Add. The Add a New JAMS Job drawer opens, with the Folder field set to the selected Folder.

  4. In the Job Name field, enter a name for the Job.

  5. In the Execution Method field, search for and select Automate.

  6. Click Save & Continue. The Job opens for editing.

  7. Click the Source tab. The fields are grouped under Connection Settings.

  8. In the Automate Server field, enter the IP address or server name of the Automate server. This field is required.

  9. In the Port field, enter the port for the Automate REST API. The default is 9708.

  10. In the Automate User field, select the JAMS Credential that connects to Automate. This field is required.

  11. In the Workflow Name field, select or type the name or Id of the Automate Workflow to run. This field is required. Once the Automate Server and Automate User fields are set, the list shows the Workflows on the Automate server. If JAMS cannot reach the server, a message appears below the field, and you can still type the name or Id.

    note

    If Workflows in different Automate folders have the same name, enter the Workflow Id. A name that matches more than one Workflow causes the Job to fail when it runs.

  12. Click Save.

  13. Click the Schedules tab to add schedule items to set when the Job will run. See Schedules for more information.

  14. Click the Properties tab. The Automate Credential property shown under Automate is the same setting as the Automate User field on the Source tab.

  15. In the Execute As field, select the JAMS Credential to run the Job.

  16. In the Agent field, select the Agent if the Job will not run on the Scheduler.

  17. Click Save.

  18. Optional: Click the Parameters tab. To override an Automate Workflow variable, add a Parameter with the same name as the variable and set its value. See Parameters for more information.

After you create the Job, it is submitted based on its schedule. You can also submit it manually. See Manually Submitting Jobs for more information. To view the Job's progress, click Monitor from the main menu.