Operation Actions
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
| operationId | string |
❌ | Identifier of the operation on which the action will be carried out |
active()
This invoke a request to OpenGate North API and the callback is managed by promises This function active an operation
Retorna
Tip
Tipo: Promise
Ejemplos
activePeriodicity()
This invoke a request to OpenGate North API and the callback is managed by promises This function active periodicity of an operation
Retorna
Tip
Tipo: Promise
Ejemplos
cancel()
This invoke a request to OpenGate North API and the callback is managed by promises This function cancels an operation
Retorna
Tip
Tipo: Promise
Ejemplos
cancelPeriodicity()
This invoke a request to OpenGate North API and the callback is managed by promises This function cancel the periodicity of an operation
Retorna
Tip
Tipo: Promise
Ejemplos
changeCallback(url)
This invoke a request to OpenGate North API and the callback is managed by promises This function pauses (if it was active), updates the callback and passes the operation to the initial state (if activated, activated again)
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| url | string |
❌ |
Retorna
Tip
Tipo: promise
Ejemplos
executeLater(minutes)
This invoke a request to OpenGate North API and the callback is managed by promises This function pauses (if it was active), updates the delay and passes the operation to the initial state (if activated, activated again)
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| minutes | number |
❌ |
Retorna
Tip
Tipo: promise
Ejemplos
executeNow()
This invoke a request to OpenGate North API and the callback is managed by promises This function pauses the operation, updates its delay to zero, and activates it so it executes immediately
Retorna
Tip
Tipo: Promise
Ejemplos
pause()
This invoke a request to OpenGate North API and the callback is managed by promises This function pauses an operation
Retorna
Tip
Tipo: Promise
Ejemplos
pausePeriodicity()
This invoke a request to OpenGate North API and the callback is managed by promises This function pauses the periodicity of an operation
Retorna
Tip
Tipo: Promise