cabrillo.flowControl - Client
Cabrillo JS functions for managing the flow of a web view.
cabrillo.flowControl - flowEnded(String flowName)
Indicates to the client that the web flow is complete.
The mobile client can then take appropriate action, which typically is to close the web view.
| Name | Type | Description |
|---|---|---|
| flowName | String | Optional. The name of the web flow to close. |
| Type | Description |
|---|---|
| None |
var flowName = 'Open Incident Flow';
cabrillo.flowControl.flowEnded(flowName);
cabrillo.flowControl - flowEndedWithUpdate(String flowName, boolean clientRefreshNeeded)
Indicates to the client that the web flow is complete and the client should update the native screens.
The mobile client can then take appropriate action, which typically is to close the web view.
| Name | Type | Description |
|---|---|---|
| flowName | String | Optional. The name of the web flow to close. |
| clientRefreshNeeded | Boolean | Optional. Flag that indicates whether the client needs to refresh the displayed data. Valid values:
Default: false |
| Type | Description |
|---|---|
| None |
var flowName = 'Open Incident Flow';
var clientRefreshNeeded = true;
cabrillo.flowControl.flowEnded(flowName, clientRefreshNeeded);