Taskflows > Taskflows > Adding a custom name to a taskflow name
  

Adding a custom name to a taskflow name

You can add a custom name to a taskflow name by using an API and the RunAJob utility. You can use the custom name as an identifier for the taskflow.

Adding a custom name to a taskflow name using an API

After you publish a taskflow as a service, you can run the taskflow as an API and add a custom name to the taskflow name. When you use the API to add a custom name that contains Japanese characters, you must pass the URL encoded characters.
    1Navigate to the taskflow that you published as a service.
    2From the Actions menu, select Properties Detail.
    The Properties Detail dialog box appears displaying the service URL and the SOAP service URL as shown in the following image:
    The image displays the Properties Detail dialog box with the service URL and the SOAP service URL.
    The service URL uses the following format:
    <Informatica Intelligent Cloud Services URL>/active-bpel/rt/<API_name>
    The SOAP service URL uses the following format:
    <Informatica Intelligent Cloud Services URL>/active-bpel/soap/<API_name>
    You can also view the associated Swagger file and WSDL file.
    3To run the taskflow, perform one of the following steps based on the type of client that you want to use:
    You can pass inputs using the service URL through a browser or a third-party tool. For more information, see Passing inputs through a REST client.
    You receive the taskflow run ID as the response.
    4In the GET request, add the TF-INSTANCE-NAME header and set the header value to the custom name that you want to use. The following image shows the custom name set to the value OrderManagement: The image shows the custom name set to OrderManagement.
    5To monitor the taskflow with the run ID, use the run ID to monitor the taskflow run in the My Jobs page. The instance name uses the following format: <taskflow name>-<custom name>-<run ID>

Adding a custom name to a taskflow name using RunAJob utility

You can add a custom name to a taskflow name using the RunAJob utility. To run a taskflow using the RunAJob utility, the taskflow must be published. Add the custom name by providing -in as the short argument and --instanceName as the long argument in the RunAJob command.
For more information about short and long options for RunAJob utility arguments, see RunAJob utility arguments in REST API Reference.
To add a custom name to a taskflow name using the RunAJob utility, use the following syntax:
cli.bat runAJobCli -t <task_type> -in <custom_name> -un <taskflow_name>
For example: cli.bat runAJobCli -t TASKFLOW -in Order -un taskflowManagement
When you use the RunAJob utility, the custom names can't contain the following characters:
The taskflow name with the custom name appears in the My Jobs page in the following format:
<taskflow name>-<custom name>-<runID>