Selection of contracts for batch processing
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:
-
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).
-
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 ).
-
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.
For the convenience of working with batch processing, criteria (filters) can be prepared once and used. (see steps 1-3)
Parameters
Path Parameters
Date and time until which contracts were created in the format "YYYY-MM-DDThh: min: sec". Is an address bar parameter
see the description above and also described in step 1. It is a parameter of the address bar
"int64"Request Body
Entity
Field
First entity value for criterion
Second entity value for criterion
Responses
OK
"double""int64""int64""int64""error""ok""int64"