Operation Finder
OperationFinder
OperationFinder Objects
class OperationFinder()This class allow make get request to operation resource into Opengate North API.
constructor
function constructor()Constructor
Arguments:
ogapiInternalOpenGateAPI - Reference to the API object.
findById
function findById(id: string) -> 'Promise'Download a specific operation by its id. This execute a GET http method
Arguments:
idstring - Operation id.
Returns:
Promise
Example:
ogapi.newOperationFinder().findById('xxx-xx-xxx-xxx').then().catch();findExecutionsById
function findExecutionsById(id: string,size: number,start: number) -> 'Promise'Download a specific executions of an operation by its id. This execute a GET http method
Arguments:
idstring - Operation id.sizenumber - Defined the number of elements on responsestartnumber (optional) - Defined the offset on response
Returns:
Promise
findPeriodicityById
function findPeriodicityById(id: string) -> 'Promise'Download information of peridodicitiy of a specific operation by its id. This execute a GET http method
Arguments:
idstring - Operation id.
Returns:
Promise
Example:
ogapi.newOperationFinder().findPeriodicityById('xxx-xx-xxx-xxx').then().catch();findPeriodicityByPeriodicityId
function findPeriodicityByPeriodicityId(periodicityId: string) -> 'Promise'Download information of periodicitiy by its id. This execute a GET http method
Arguments:
periodicityIdstring - Periodicity id.
Returns:
Promise
Example:
ogapi.newOperationFinder().findPeriodicityByPeriodicityId('xxx-xx-xxx-xxx').then().catch();