Triggering a Task Using the AM.Trigger.Console - Conductor - Foundation 23.2 - Foundation 23.2 - Ready - Hyland RPA - external

Hyland RPA Conductor

Hyland RPA
Foundation 23.2

The AM.Trigger.Console is used during the get-well or run phase of your automation project. It's usually used to generate Data Collector tasks. But you can still create tasks of any kind using the AM.Trigger.Console. See how you can create a task with the AM.Trigger.Console in this article.

Note: Before we start, please make sure that you have maintained the connection string (yes, another one) in the AM.Trigger.Console.exe.config. Otherwise the Trigger will not be able to connect to your database in order to create the required tasks.
 <add name="AM.ConnectionString"
 connectionString="Server=myServerAddress;Database=myDataBase;User Id=myUsername; Password=myPassword;" providerName="System.Data.SqlClient" />
  1. Open the Windows Task Scheduler.
  2. Right Click on the folder Task Scheduler Library and create a new Folder (for example, AM)
  3. Right click on the created folder (for example, AM) and click Create Task).
  4. Maintain the task metadata (for example, Name & Description)
  5. Navigate into the tab Triggers and click on New.
  6. Define the task schedule according to your demands and press OK. In this example we defined a weekly schedule, that generates a task every 1 hour starting from 7:00:00 AM.
  7. Next define the action that should be performed by the task. In our case the task should start our AM.Trigger.Console.exe so that the AM.Trigger.Console can generate a task for us. To do so, open the Actions tab and press New.
  8. Browse through the files and locate AM.Trigger.Console.exe and select it. In the "Add Arguments" field you need to enter all task relevant parameters in the following format (depends on the version you are using):

    Trigger Version

    (TaskTypeID) X (ProcessorID) X

    In the example below TaskTypeID 2 ProcessorID 5:

    Trigger Version

    --TaskTypeID X --ProcessorID X --ProductionID X --Source -X --TaskstatusID X --Priority X

    Only TaskTypeID, ProcessorID and Source are mandatory.

    Since Trigger Version

    --TaskTypeID X --ProcessorID X --ProductionID X --Source X --TaskstatusID X --Inputdata X --Redoable TrueFalse --MaxExistingTasks X --AmountOfTasksToCreate X --help --version

    Only TaskTypeID, ProcessorID and Source are mandatory.

    -t, --TaskTypeID Required. Set the TaskTypeID for your process

    -p, --ProcessorID Required. Set the ProcessorID for your process

    --ProductionID Set the ProductionID for your process

    -s, --Source Required. Set the source. This is the name of the trigger

    --TaskstatusID Set the status of your task.

    --Inputdata Set the inputdata string of your task.

    --Redoable Set the redoable flag of your task.

    --MaxExistingTasks Set the maximum amount of existing tasks for your tasktype.

    --AmountOfTasksToCreate Set amount of task you want to create.

    --help Display this help screen.

    --version Display version information.

  9. After setting up a task with the scheduler, the trigger will be executed according to the schedule create tasks. The execution in the command line would look like this:

    Trigger Version

    Trigger Version

    Trigger Version