Skip to content

Selection of contracts for batch processing

POST

Process is a set of documents executed in a specific order for each contract that falls under the sample of this process. Each document is associated with an operation that applies to this contract. That is, the process is the logic of executing certain documents that create operations for each contract.

Obtaining the necessary data and information for starting batch processing and step-by-step instructions for it:

  1. Finding the required process type identifier is performed using the method " Obtaining available process types " and its decryption from the directory " Process types "(address bar parameter).

  2. Getting a list of entities for filtering a selection of contracts (The value of the "object" parameter is passed in the request body in the criteria in the "entity" field ).

  3. Getting entity fields for filtering a selection of contracts (The value of the "object" parameter is passed in the request body in the criteria in the "field" field ).

-> 4. Selection of contracts for batch processing . The selection can use criteria for filtering. If they are not used, then an empty collection [] is passed in the request body and contracts will be returned without filtering applied to them. The selection of contracts for processing by the process is incorporated into the logic of the batch processing process and it is recommended to use it for the method described in the next step.

  1. Starting batch processing .

For the convenience of working with batch processing, criteria (filters) can be prepared once and used. (see steps 1-3)

Parameters

Path Parameters

date*

Date and time until which contracts were created in the format "YYYY-MM-DDThh: min: sec". Is an address bar parameter

Type
string
Required
processTypeId*

see the description above and also described in step 1. It is a parameter of the address bar

Type
integer
Required
Format
"int64"

Request Body

application/json
object[]

Entity

Field

First entity value for criterion

Second entity value for criterion

Responses

OK

*/*
object
object[]
Format"double"
Format"int64"
object
Format"int64"
Format"int64"
Valid values"error""ok"
Format"int64"