The RPA InProcessFileBatch function is triggered from within a Cora SeQuence process, and delivers a file to a robot for RPA in a batch mode.
Method
POST
URL
https://{Sequence.Server}/SequenceServices/coraRpaIntegration_v1.0.0.asmx
Response Codes
Responses follow standard HTTP Status Codes.
Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| TimeOut | integer | required | The interval after which the process stops searching for the result file. |
| ExternalContext | string | optional | Additional process information. |
| IsOneWay | boolean | required | Indicates if the process waits for robot results before proceeding. |
| InputFile | object | required | Defines the location of the source file to send to the robot. |
| RobotProfile | string | required | Name of the profile that contains the settings for the RPA implementation. |
| OutPutFile | object | required | Defines the location where the result file is placed. |
| FileId | guid | required | GUID of the file uploaded to the system in the main product, for example, Update Account. This file is sent to the robot for processing. |
Output Parameters
| Name | Type | Description |
|---|---|---|
| FileId | guid | GUID of the result file that was uploaded to Cora SeQuence. |
SOAP 1.1 Sample
Request
POST /SequenceServices/coraRpaIntegration_v1.0.0.asmx HTTP/1.1
Host: admindev.pnmsoftlabs.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://genpact.com/cora/orchestration/rpa/1.0.0/api/InProcessFileBatch"
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ActivityMetadata xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<WorkflowSpaceId>guid</WorkflowSpaceId>
<WorkflowSpaceName>string</WorkflowSpaceName>
<WorkflowId>guid</WorkflowId>
<WorkflowName>string</WorkflowName>
<WorkflowInstanceId>long</WorkflowInstanceId>
<ActivityId>guid</ActivityId>
<ActivityName>string</ActivityName>
<ActivityInstanceId>long</ActivityInstanceId>
<CallerId>int</CallerId>
<MasterWorkflowInstanceId>long</MasterWorkflowInstanceId>
</ActivityMetadata>
</soap:Header>
<soap:Body>
<InProcessFileBatch xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<Input>
<FileId>guid</FileId>
<RobotProfile>string>/RobotProfile>
</Input>
</InProcessFileBatch>
</soap:Body>
</soap:Envelope>Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InProcessFileBatchResponse xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<Output>
<FileId>guid</FileId>
</Output>
</InProcessFileBatchResponse>
</soap:Body>
</soap:Envelope>SOAP 1.2 Sample
Request
POST /SequenceServices/coraRpaIntegration_v1.0.0.asmx HTTP/1.1
Host: admindev.pnmsoftlabs.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<ActivityMetadata xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<WorkflowSpaceId>guid</WorkflowSpaceId>
<WorkflowSpaceName>string</WorkflowSpaceName>
<WorkflowId>guid</WorkflowId>
<WorkflowName>string</WorkflowName>
<WorkflowInstanceId>long</WorkflowInstanceId>
<ActivityId>guid</ActivityId>
<ActivityName>string</ActivityName>
<ActivityInstanceId>long</ActivityInstanceId>
<CallerId>int</CallerId>
<MasterWorkflowInstanceId>long</MasterWorkflowInstanceId>
</ActivityMetadata>
</soap12:Header>
<soap12:Body>
<InProcessFileBatch xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<Input>
<FileId>guid</FileId>
<RobotProfile>string</RobotProfile>
</Input>
</InProcessFileBatch>
</soap12:Body>
</soap12:Envelope>Response
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<InProcessFileBatchResponse xmlns="http://genpact.com/cora/orchestration/rpa/1.0.0/api/">
<Output>
<FileId>guid</FileId>
</Output>
</InProcessFileBatchResponse>
</soap12:Body>
</soap12:Envelope>