3.3.1 Create a Task Definition

Create a task definition to define a simple task or worker.

  1. Open the navigation menu and click Definitions.
  2. Click the Tasks tab.

    The Tasks list page opens. All the tasks that you have defined are displayed in a table.

  3. Click add a new building block(Add New Task Definition).
    The New Task Definition dialog box is displayed.
  4. Select Form to enter values for the fields that are displayed or select JSON to paste the task definition in JSON format.
    For details about the fields of a simple task or worker, see Task Definition. The following code sample provides the JSON code of the task definition for a simple task that accepts a loan request.
    {
        "name": "loan_processing_agent_task",
        "taskReferenceName": "loan_processing_agent_task",
        "inputParameters": {
               "applicantId": "12345"
             },
        "type": "SIMPLE"
    }
  5. Click Submit to save the changes.
Details of the task that you have created is displayed on the Tasks list page.