CLIENT_REQUEST ()
CLIENT_REQUEST(action, [parameters]]) |
Execute this FORMULA to generate a request that will be sent to the client after a call to form_set_answer ().
The FORMULA is only executed if the call to form_set_answer () causes the FORM to close, and it generates a JSON string that will be included in the response returned by form_set_answer () into the node ‘action_request’.
The goal of this formula is to be able to suggest the client which action should it perform when a FORM is closed. Obviously it is responsibility of the client whether to consider the suggestion or not.
Input Parameters
Return value
The FORMULA generates a JSON formatted string with the information about the request. This string will be included in the response of form_set_answer () into the node action_request, but only when the FORM is closed as a result of the invocation to form_set_answer ().
See examples of possible return values below
Execution
When the FORM containing the FORMULA is closed
Action Names and Parameters
Action Name | Expected parameters | Comments | Return value examples |
---|---|---|---|
SHOW_CASE_LIST |
| The client is asked to show the list of CASESs of the active USER. Optionally It is possible to indicate a program and/or a team to show only the CASEs related to that PROGRAM/TEAM The accepted
|
Note that the return value will only include the |
SHOW_CASE_TASK_LIST |
| The client is asked to show the list of TASKs of a particular CASE. The CASE is supposed to be one associated to the current ADMISSION. Optionally It is possible to indicate a program and/or a team to show only the TASKs related to that PROGRAM/TEAM The accepted
|
Note that the return value will only include the |
SHOW_CASE_EVENT_LIST |
| The client is asked to show the list of TASKs of a particular EVENT. The CASE is supposed to be one associated to the current ADMISSION. Optionally It is possible to indicate a program and/or a team to show only the EVENTs related to that PROGRAM/TEAM The accepted
|
Note that the return value will only include the |
SHOW_USER_TASK_LIST |
| The client is asked to show the list of TASKs of the active USER. Optionally It is possible to indicate a program and/or a team to show only the TASKs related to that PROGRAM/TEAM The accepted
|
Note that the return value will only include the |
SHOW_USER_EVENT_LIST |
| The client is asked to show the list of EVENTSs of the active USER. Optionally It is possible to indicate a program and/or a team to show only the EVENTs related to that PROGRAM/TEAM
|
Note that the return value will only include the |
SHOW_TASK |
| The client is asked to show a specific TASK that should be provided in the parameters. If a TASK_CODE is provided in the parameters and there exist more than one TASK with that TASK_CODE, then the last open TASK will be used, or the last closed TASK if all are closed. The return value will include extended information providing the ADMISSION reference and CASE reference |
|
SHOW_EVENT |
| The client is asked to show a specific EVENT that should be provided in the parameters. If the EVENT is assigned to a CASE, there return value will include extended information providing the ADMISSION reference and CASE reference |
|
Examples
Formula | Description | Return value |
---|---|---|
CLIENT_REQUEST(“SHOW_CASE_LIST“) | Requests the client to show the case list of the active user |
|
CLIENT_REQUEST(“SHOW_TASK“, {“task”: “12324”}) | Requests the client to show the TASK with reference 12324 |
|