Pending Handler
The pendingHandler
is a special handler. If an action has pendingHandler
, the main purpose is to use the $result
from the PENDING
response to update the remoteActionArguments
and re-send the same request.
Status
Release Available | Status | Framework Name |
---|---|---|
Initial | Current | MUI and Mint |
Implementation Example
In the following example, a new variable name is introduced $remoteArgs
.
Code JSON
{ "actionType": "submit", "remoteActionArguments": { "guestAccountId": "$global.attr(sessionId);", "applicationId": "$this.attr(applicationId);" }, "pollingPeriod": 3000, "pollingMaxTries": 3, "pendingHandler": { "assignments": [ {"field": "$remoteArgs(applicationId);", "value": "$result;"} ] }}