---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# cabrillo.flowControl - Client

# cabrillo.flowControl - Client {#ariaid-title1}

Cabrillo JS functions for managing the flow of a web view.

## cabrillo.flowControl - flowEnded(String flowName) {#ariaid-title2}

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.
{#FC-flowEnded_S__table_oyf_tnn_wbb__entry__3}

| Name | Type | Description |
|-|-|-|
| flowName | String | Optional. The name of the web flow to close. |
[Table 1. Parameters]

{#FC-flowEnded_S__table_oyf_tnn_wbb} {#FC-flowEnded_S__table_pyf_tnn_wbb__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 2. Returns]

{#FC-flowEnded_S__table_pyf_tnn_wbb}  

    var flowName = 'Open Incident Flow';
    cabrillo.flowControl.flowEnded(flowName);

## cabrillo.flowControl - flowEndedWithUpdate(String flowName, boolean clientRefreshNeeded) {#ariaid-title3}

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.
{#FC-flowEndedWU_S_B__table_oyf_tnn_wbb__entry__3}

| 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: * true: The client needs to refresh the displayed data. * false: The client doesn't need to refresh the displayed data. {#FC-flowEndedWU_S_B__ul_irz_3jv_nyb} Default: false |
[Table 3. Parameters]

{#FC-flowEndedWU_S_B__table_oyf_tnn_wbb} {#FC-flowEndedWU_S_B__table_pyf_tnn_wbb__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 4. Returns]

{#FC-flowEndedWU_S_B__table_pyf_tnn_wbb}  

    var flowName = 'Open Incident Flow';
    var clientRefreshNeeded = true;
    cabrillo.flowControl.flowEnded(flowName, clientRefreshNeeded);


