Prerequisites

In order to add a Call TaskClosed The Call Task tool is used to trigger an external task to run. Using variables, BPA Platform data can be passed between the two tasks at run-time, if required. task step, the following prerequisites must be met.

(Recommended) Creating a Dedicated Call Task User

Although not necessary, it is recommended you create a dedicated user for the Call Task tool to use. This prevents Call Task tasks not being able to run because the credentials are being used elsewhere, for example, to log into the BPA Platform client.

Connecting to the Task Folder

You must create global connections to the required task folders first. You open this interface from the resources tree — expand System > Tools > Execute and double-click Call Task in the items list.

Tip: You cannot select individual tasks for at this stage, only task folders. It is recommended you organise your task list, not only according to business process or your organisational structure, but also to whether available to the Call Task tool. This way, those tasks that should not be used elsewhere are "locked out" of the tool.

For more information about using task folders, see Managing Task Folders.

  1. To begin creating a new connection, click Add.
  2. Provide the connection details for the BPA Platform server containing the called tasks — avoid the use of localhost, see below. Use the credentials of the dedicated Call Task user created previously.
  3. Go to the Folder tab and choose the relevant task folder.

    Note: You cannot select an individual task at this point. The layout of the Folder tab is only to allow you to view the folder contents. Individual task selection is made when adding a Call Task step.

  4. Click OK to save and close this connection.

Adding a Call Task Step

To add a new Call Task step to an existing task:

  1. Open the relevant task (if creating a new task, see How to Create a Basic Task).
  2. Either:
Click and drag the Call Task icon from the Task Browser to the task Design area.

–OR–

From the task's Design tab, right-click on empty space and select New > Execute > Call Task.
  1. Use the General tab to choose the BPA Platform data source to be mapped to the called task's objects. The data source must be in XML form. To map BPA Platform recordsets, configure a Convert Recordset to XMLClosed The Convert Recordset to XML tool converts one or more flat-structure BPA Platform recordsets into a hierarchical XML structure. It provides "translation services" between the standard BPA Platform tools, such as Database Query (ODBC), and advanced BPA Platform tools that accept XML as their input. or Transform DataClosed Transform Data is a Format tool that enables a new structure to be created from an existing XML or recordset data source. The output generated by this tool is ready for use in a destination system which consumes or requires XML. step in the task before the Call Task step, then select this as Task step (see below).

  2. Go to the Connection tab and choose the relevant folder connection for this task step.
  3. Go to the Mapping tab and choose the operation for this task step. If required, map any input data fields.

    The Object drop-down shows the available tasks. The Operations drop-down shows the operations available for the selected Object:

    RunSync — Runs the called task when called by the original task; the original task waits for the called task to complete before continuing. Parameter-type variables can be used to pass data between the tasks; with RunSync operations, the original task cannot complete until the data is passed back.

    The data passed back is store in the output XML of the original task. This in turn can be consumed by another step capable of processing XML, such as the Convert XML to RecordsetClosed The Convert XML to Recordset tool is used to convert XML data into a flat-format BPA Platform recordset, allowing the data to be used by recordset-only consuming tools. This could then be used to power alerts via fax, email, or SMS, create reports, power a workflow, perform FTP transfer, and so on. tool.

    Use this operation if the original task requires data from the called task.

    Queued — Queues the second task but continues to run the original task to completion; both tasks run independently of each other. Data can be passed to a parameter-type variable in the called task. However, this operation does not allow data to be passed back as the original task has already completed running before the second task initialises.

    Use this option when only triggering a task to run, with or without data from the originating task.

  4. Go to the Options tab and select the relevant error handling options for this task step.
  5. Click  to save the task step.