Run Operation Activity

Description

The Run Operation activity executes an operation in a Geocortex viewer application like the Geocortex Mobile Viewer or Geocortex Web Viewer.

Operations are similar to activities. They perform a unit of work in an application. Depending on the operation specified, an input parameter may be required and the operations may produce an output result value.

Usage

A workflow could use the Run Operation activity to invoke the sketching.capture-geometry operation in a viewer. This operation allows the end user to draw a geometry on the map. Set the Operation Name input to sketching.capture-geometry. Set the Operation Parameter input to an expression that provides an object that specifies the desired drawing type. For example, ={ "geometryType": "point" }, ={ "geometryType": "polyline" } or ={ "geometryType": "polygon" }. When the user completes drawing a geometry the operation will complete. The operation's resulting geometry value will be assigned to the result output of the activity and the activity will complete.

Offline Support

This activity works when the device is offline.

Inputs

Operation Name

Required

Type: String

The name of the operation to invoke.

Operation Parameter

Optional

Type: any

The parameter to pass to the operation.

The type of parameter value and whether it is required depends on the operation.

Outputs

result

Type: any

The result of the operation.

The type of result value and whether it is provided depends on the operation.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.11