Table of Contents

Search

  1. Preface
  2. Taskflows and linear taskflows
  3. Taskflows
  4. Linear taskflows

Taskflows

Taskflows

Creating a taskflow input

Creating a taskflow input

After you publish a taskflow, you can create a taskflow input and use it to run a taskflow for testing purposes. You can create multiple taskflow inputs and run a taskflow with all the inputs.
You can create a taskflow input in JSON or XML format. Then, validate and save the taskflow input.
When you export, copy, or move a taskflow that contains taskflow inputs, the taskflow inputs are retained.
  1. On the
    Explore
    page, navigate to the taskflow for which you want to create a taskflow input.
  2. From the
    Actions
    menu, select
    Run Using
    .
    The
    Test Taskflow Input Collection
    page opens.
    The following image shows the
    Test Taskflow Input Collection
    page:
    The image shows the Test Taskflow Input Collection page.
  3. Click
    New Input
    .
  4. Enter a name for the taskflow input and click
    Save
    .
    The name must not exceed 80 characters.
    The
    Taskflow Input
    section is populated with the input fields required for the taskflow.
    For the input fields with custom types, the fault and output parameters are added in the input payload and appear in the
    Taskflow Input
    section, by default. You must remove them manually for the taskflow input to be valid.
    The following image shows the
    Taskflow Input
    section populated with input fields for an
    Employee
    custom type:
    The image shows the Taskflow Input section populated with input fields for an Employee custom type.
    The
    Custom Type
    section shows the custom type input fields that the taskflow uses. For more information about custom type fields, see Creating an input field with a custom type.
  5. From the
    Encoding
    list, select
    JSON
    or
    XML
    based on the format that you want to work with and specify the taskflow input.
    If the taskflow contains input fields with space characters in them, select
    JSON
    as the encoding type.
  6. Click the
    Validate
    icon to validate the syntax of the taskflow input.
    A confirmation message appears stating if the validation was successful or not. If the validation fails, correct the syntax of the taskflow input and validate again.
  7. Click
    Save
    to save the taskflow input.
    You can click
    Save As
    to save the taskflow input with a different name. You can also click the
    Reset
    icon to reset a taskflow input to the last saved taskflow input.
After you create taskflow inputs, you can run the taskflow with the required inputs.

0 COMMENTS

We’d like to hear from you!