Skip to main content

Persistent Service Model Runner Button

How-to Guide

The Persistent Service Model Runner button is a default component in app builder. This component is a button that makes requests to persistent backend services.

There is a parameter called Use Project Gateway, which is enabled by default. This parameter determines which Dais API to use to communicate with the backend service: the project-gatewayAPI, or the submissions API (when Use Project Gateway is false).

Requests made via project-gateway transfer data over an open HTTP connection, so any network disruptions during the request will cause the model run to fail.

Requests made using the Submissions API are more flexible than requests made via project-gateway because they do not depend on a user's browser maintaining an open HTTP connection. When configured correctly, this button will continue waiting for the model run to complete even if you refresh your browser. To enable persistence of a pending submission, link the Metadata Path property to a datastore location. You will probably want to enable Autosave too so metadata about the pending submission is automatically persisted.

Reference Guide also available

Persistent Service Model Runner Button technical Reference Guide