Bulk Execution Builder
BulkExecutionBuilder
BulkExecutionBuilder Objects
class BulkExecutionBuilder()This builder give you the necessary tools to create a bulk executions using our OpenGate REST
constructor
function constructor()Constructor
Arguments:
ogapiInternalOpenGateAPI - required field. This is ogapi instanceorganizationstring - required field. This is the organization nameprocessorIdstring - required field. This is the provision processor use for bulk provisiontimeoutnumber (optional) - timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception
bulk
function bulk(rawFile: string,File,extension: string) -> '*'Do a bulk using specific Provision Processor.
Arguments:
rawFilestring,File - String with path of file or File (Blob)extensionstring (optional) - File format
Returns:
*
Example:
ogapi.bulkExecutionBuilder('orgname', 'processorId', 10000).bulk(rawFile, extension)plan
function plan(rawFile: string,File,extension: string,numberOfEntriesToProcess: number) -> '*'Instead of creating a bulk process, return the provision process planning for specified entries. This is is synch process that does not cause changes in the database
Arguments:
rawFilestring,File - String with path of file or File (Blob)extensionstring (optional) - File formatnumberOfEntriesToProcessnumber (optional) - Number of entries to be processed.
Returns:
*
Example:
ogapi.bulkExecutionBuilder('orgname', 'processorId', 10000).plan(rawFile, extension)
ogapi.bulkExecutionBuilder('orgname', 'processorId', 10000).plan(rawFile, extension, numberOfEntriesToProcess)