Create an Activity

This article will walk you through creating a new workflow activity for web applications.


Download and set up the Geocortex Workflow TypeScript SDK.

Create an Activity

  1. Open up a terminal shell in the SDK folder.
  2. Run the command npm run activity and name the activity MyCustomActivity.

This script creates a custom activity skeleton that you can build on with your own custom logic.

Deploy the Activity

Follow the instructions to build the activity pack and deploy it.

Test the Activity

Once your activity pack is hosted and registered, your custom activity should appear in the activity toolbox in Geocortex Workflow Designer alongside the built-in activities, and can be used in the graphical interface like any other activity.

Now you can build a workflow that uses your new custom activity!

Next Steps

Calculate a Logarithm with a Custom Activity

Implement a custom activity that calculates the logarithm of a number

Implement a Custom Form Element

Implement a custom form element for applications like Geocortex Web

Add a Layer to the Map with a Custom Activity

Access application properties like the map in custom activities for Web Applications

Use the ArcGIS API for JavaScript in an activity.

Use the ArcGIS API for TypeScript in an activity or form element