This is a special type of activity. You do not run it by connecting other activities to it. Instead, you use the Execute Function activity to run it.
You can then set the result that is returned to the Execute Function activity. This is similar to the idea of a function call.
You could have a Function activity that contains validation logic that is relevant to several form elements. Then, in each element's validate event handler, you could use an Execute Function activity to run it.
You can also call a Function activity from the Set Form Element Event activity, although no arguments or result can be used in such cases.
Arguments Type |
Optional Type: String The type of the arguments to be supplied to the Function activity. This can be a known type such as esri.Point or a TypeScript interface such as { id: number; name: string; location: esri.Point; }. This will be used in the Designer to offer suggestions when you use the arguments in an expression. |
Result Type |
Optional Type: String The type of the result. This can be a known type such as esri.Point or a TypeScript interface such as { id: number; name: string; location: esri.Point; }. This will be used in the Designer to offer suggestions when you use the result of the Execute Function activity that runs this Function activity. |
arguments |
Type: Object The input arguments to the Function activity. This will only be populated if the Function activity is called by an Execute Function activity. |
setResult |
Type: Object A function to set the result of the Function activity which will be returned to the Execute Function activity (that called the Function activity). |
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
This activity works when the device has intermittent connectivity to the network.
Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.
See also...