After you publish a process, you can run a process to test it. You can create process inputs and run the process with process inputs. After you run the process, you can view details of the successful and unsuccessful executions of the process instances.
The following video shows you how to create process inputs and test a process with process inputs:
After you publish a process, you can create a process input and use it to run a process for testing purposes. You can also create multiple process inputs and run a process with all the inputs.
You can create a process input in the JSON or XML format. Then, validate and save the process input.
When you export, copy, or move a process that contains process inputs, the process inputs are also retained.
1On the Explore page, navigate to the process for which you want to create a process input.
2On the Actions menu, click Run Using.
The Test Process Input Collection page opens.
The following image shows the Test Process Input Collection page:
3Click New Input.
4Enter a name for the process input and click Save.
The name of the process input must not exceed 80 characters.
The Process Input section is populated with the input fields required for the process.
The following image shows the Process Input section populated with input fields for an Employee process object:
5From the Encoding list, select JSON or XML based on the format that you want to work with and specify the process input.
Note: If the process contains input fields with space characters in them, select JSON as the encoding type.
6Click the Validate icon to validate the syntax of the process input.
A confirmation message appears stating if the validation was successful or not. If the validation fails, correct the syntax of the process input, and validate again.
7Click Save to save the process input.
You can click Save As to save the process input with a different name. You can also click the Reset icon reset a process input to the last saved process input.
After you create process inputs, you can run the process with the required inputs.
Running a process with process inputs
After you publish a process and create process inputs, you can run the process with process inputs to test it. After you run the process, you can view details of the successful and unsuccessful executions of the process instances.
1On the Explore page, navigate to the process that you want to run with one or more process inputs.
2Perform one of the following steps:
- To run a process with the last successfully run process input, open the Actions menu, and click Run. The Process Execution Status page opens displaying details of the successful and unsuccessful process executions.
Note: If you had not created process inputs or run the process before, the Test Process Input Collection page opens from where you can create process inputs and run the process.
- To run a process with a specific process input or all the process inputs, open the Actions menu and click Run Using. The Test Process Input Collection page opens.
The following image shows the Test Process Input Collection page:
Note: The Run and Run Using options are disabled if the process contains unsaved or unpublished changes. To run the process, you must save and publish the process again.
3 Perform one of the following steps:
- To run the process with a specific process input, select the process input and click Run.
- To run the process with all the process inputs, click Run All.
Application Integration runs the process with the specified inputs. After the process execution is complete, the Process Execution Status page opens displaying details of the successful and unsuccessful process executions. For long running processes, it might take some time for the Process Execution Status page to appear.
The following image shows the Process Execution Status page:
4Click the links under the Successful executions or Unsuccessful executions sections to view details of the process execution.
The process run ID is appended to the link. You can use the run ID to verify the process execution details in the Application Integration Console.
Deleting a process input
You can delete a process input if you do not need it.
1On the Explore page, navigate to the process for which you want to delete a process input.
2On the Actions menu, click Run Using.
The Test Process Input Collection page opens.
The following image shows the Test Process Input Collection page:
3Select the process input that you want to delete, and click the Delete icon.
A message appears prompting you to confirm the process input deletion.
4Click Delete to proceed with the deletion or click Cancel to cancel the deletion.
Rules and guidelines for process inputs
Consider the following rules and guidelines when you create process inputs to run a process:
•If a process contains input fields with space characters in them, you cannot use the XML encoding type while creating the process input.
•You cannot create a process input of the Image, Attachment, and Attachments data types.
•If you create a process input of the Rich Text Area data type, you must verify that the process input is properly encoded. You must encode < > as < >.
Consider the name of the text input field as InputField and the text input value as HelloWorld in bold font. For this example, you must edit the process input code as follows:
•If you create a process input of the Any data type, you must specify the process input as a key value pair.
Consider the name of the input field of the Any data type as InputFieldAnyType and the value as valueHelloWorld. For this example, the process input code with JSON encoding must be as follows:
•In the Process Objects section, only the input fields that contain process objects appear.
•When you make changes to the input fields in the published process, you must manually refresh the Run Using dialog box to see the changes.
•When you make changes to the process input and cancel the changes without saving them, the changes persist.
•If a process contains an output field of the list of number data type with a precision greater than 7, the value is displayed in the exponential format for JSON payloads in the advanced view of a process in Application Integration Console.