Geocortex Workflow activities can be implemented in either TypeScript or C#, depending on the target platform. For custom activities implemented in TypeScript, the registration of the workflow activity implementation is done alongside the Geocortex Workflow Designer activity definition when the activity pack is registered. However, with .NET activities implemented for Geocortex Mobile or Geocortex Workflow Server, the implementation is defined on the host platform (.NET), while the Geocortex Workflow Designer activity definition must be defined in an activity pack (TypeScript).
If no Geocortex Workflow Designer activity definition is provided for a custom activity implemented for Geocortex Mobile or Geocortex Workflow Server, the activity will not show up in Geocortex Workflow Designer and must be run using
Implement a TypeScript Activity Pack with Stub Activities
The idea behind creating activity definitions for Geocortex Workflow Designer is that every activity implemented in .NET has a corresponding stub activity with the metadata, but no execution body, in a TypeScript activity pack.
Let's take the Geocortex Mobile custom logarithm activity for example.
This activity will need a TypeScript stub that defines its input and output types and descriptions, specifies the runtime environments it supports, and an activity description.
Create a new Activity Pack
Stub out the Activity Metadata
Stub out the appropriate metadata and type information for the .NET activity you are stubbing out. The execute body is left empty, as the implementation is defined in .NET using the Geocortex Mobile SDK or Geocortex Workflow for Server. In the case of the Logarithm activity, the stub might look like this.
action property of the original activity definition has been changed to
your:unique:namespace::CalculateLog to match the action name in the .NET implementation. If these two action names are not the same, the .NET workflow runtime will not be able to find the correct activity.
The activity now has a friendly user interface in Geocortex Workflow Designer, that can be shared with other workflow authors.