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 cancela 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 pause, update its delay and active an operation for execute immediately
Retorna
Tip
Tipo: Promise
Ejemplos
pause()
This invoke a request to OpenGate North API and the callback is managed by promises This function pause 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 pause periodicity of an operation
Retorna
Tip
Tipo: Promise