Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class ActivityBase

The class for implementation custom activities

Inheritance

↳ object

    ↳ FormBase

        ↳ ActivityBase

            ↳ Decision

            ↳ DecisionTable

            ↳ GeneratedCustomActivity

            ↳ ActivityBaseFromAction

            ↳ ActivityBaseFromActionAsync

Inherited Members

FormBase.CustomTypeAnnotationName

FormBase.Type

FormBase.Title

FormBase.Template

FormBase.Parameters

FormBase.DefaultValues

FormBase.ExecutionAsync(WorkflowRuntime, ProcessInstance, Dictionary<string, string>, CancellationToken)

FormBase.PreExecutionAsync(WorkflowRuntime, ProcessInstance, Dictionary<string, string>, CancellationToken)

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public abstract class ActivityBase : FormBase

Constructors

ActivityBase(Func<bool>)

Declaration
public ActivityBase(Func<bool> getDisabled = null)
Parameters
TypeNameDescription
Func<bool>getDisabled

Properties

Description

Declaration
public virtual string Description { get; set; }
Property value
TypeDescription
string

Image

Declaration
public virtual string Image { get; set; }
Property value
TypeDescription
string

SVGTemplate

Declaration
public virtual string SVGTemplate { get; set; }
Property value
TypeDescription
string

AllowCycleTransition

If true, you can create a cycle transition from this activity to itself. If false, you can't do it.

Declaration
public virtual bool AllowCycleTransition { get; }
Property value
TypeDescription
bool

PluginName

If activity provides by a plugin, this property should contain the name of the plugin.

Declaration
public virtual string PluginName { get; }
Property value
TypeDescription
string

IsOutgoingTransitionsReadonly

If true, the outgoing transitions of the activity are read-only, and can be edited only via the activity form.

Declaration
public virtual bool IsOutgoingTransitionsReadonly { get; }
Property value
TypeDescription
bool

BaseTemplate

Defines the base template which is used to edit the activity.

Declaration
[JsonConverter(typeof(StringEnumConverter))]
public virtual BaseTemplate BaseTemplate { get; }
Property value
TypeDescription
BaseTemplate

SaveToAnnotationsPolicy

Defines the policy for saving attributes to annotations.

Declaration
[JsonConverter(typeof(StringEnumConverter))]
public virtual SaveToAnnotationsPolicy SaveToAnnotationsPolicy { get; }
Property value
TypeDescription
SaveToAnnotationsPolicy

OrdinaryActivityParameters

Gets the set of fields that can be saved to the activity properties instead of annotations.

Declaration
public virtual ImmutableHashSet<string> OrdinaryActivityParameters { get; }
Property value
TypeDescription
ImmutableHashSet<string>The set of fields that can be saved to the activity properties.

AnnotationActivityParameters

Gets the set of fields that can be saved to the activity annotations. The policy for saving fields to annotations is defined by the ActivityBase.SaveToAnnotationsPolicy property.

Declaration
public virtual ImmutableHashSet<string> AnnotationActivityParameters { get; }
Property value
TypeDescription
ImmutableHashSet<string>

Disabled

Declaration
public override bool Disabled { get; set; }
Property value
TypeDescription
bool

Extension Methods