# Class Scheme.Activity OptimaJet.Workflow.Api.Models.Scheme.Activity Activity. Namespace: [OptimaJet.Workflow.Api.Models](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/) ```csharp public record Scheme.Activity : IEquatable ``` ## Type Hierarchy - Scheme.Activity Current type - Implemented interfaces - [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1) ## Constructors ### `public Activity(string Name, Scheme.Designer DesignerSettings, string OriginalName, string OriginalSchemeCode, string LastTimeInlineName, string FirstTimeInlineName, bool WasInlined, string ActivityType, string SchemeCode, string State, bool IsInitial, bool IsFinal, bool IsForSetState, bool IsAutoSchemeUpdate, string? InlinedSchemeCode, bool DisablePersistState, bool DisablePersistTransitionHistory, bool DisablePersistParameters, string? UserComment, bool HaveImplementation, bool HavePreExecutionImplementation, List Implementation, List PreExecutionImplementation, List Annotations, Scheme.ActivityTimeout ExecutionTimeout, Scheme.ActivityTimeout IdleTimeout, List ExceptionsHandlers, bool IsState, int? NestingLevel, string? LocalizedState = null)` Activity. ### Parameters | Name | Type | Description | | --- | --- | --- | | `Name` | `String` | The name. | | `DesignerSettings` | `Scheme.Designer` | The designer settings. | | `OriginalName` | `String` | The original name. | | `OriginalSchemeCode` | `String` | The original scheme code. | | `LastTimeInlineName` | `String` | The name assigned during the most recent inlining. | | `FirstTimeInlineName` | `String` | The name assigned during the first inlining. | | `WasInlined` | `Boolean` | Whether the element was inlined. | | `ActivityType` | `String` | The activity type. | | `SchemeCode` | `String` | The scheme code. | | `State` | `String` | The state. | | `IsInitial` | `Boolean` | Whether this is the initial activity. | | `IsFinal` | `Boolean` | Whether this is a final activity. | | `IsForSetState` | `Boolean` | Whether the activity is available for setting the state. | | `IsAutoSchemeUpdate` | `Boolean` | Whether the activity allows automatic scheme updates. | | `InlinedSchemeCode` | `String` | The inlined scheme code. | | `DisablePersistState` | `Boolean` | Whether state persistence is disabled. | | `DisablePersistTransitionHistory` | `Boolean` | Whether transition history persistence is disabled. | | `DisablePersistParameters` | `Boolean` | Whether parameter persistence is disabled. | | `UserComment` | `String` | The user comment. | | `HaveImplementation` | `Boolean` | Whether the activity has an implementation. | | `HavePreExecutionImplementation` | `Boolean` | Whether the activity has a pre-execution implementation. | | `Implementation` | `List` | The implementation. | | `PreExecutionImplementation` | `List` | The pre execution implementation. | | `Annotations` | `List` | The annotations. | | `ExecutionTimeout` | `Scheme.ActivityTimeout` | The execution timeout. | | `IdleTimeout` | `Scheme.ActivityTimeout` | The idle timeout. | | `ExceptionsHandlers` | `List` | The exceptions handlers. | | `IsState` | `Boolean` | Whether the activity represents a state. | | `NestingLevel` | `Nullable` | The nesting level. | | `LocalizedState` | `String` | The state localized using the request culture. | ## Properties ### `public string Name { get; init; }` The name. ### `public Scheme.Designer DesignerSettings { get; init; }` The designer settings. ### `public string OriginalName { get; init; }` The original name. ### `public string OriginalSchemeCode { get; init; }` The original scheme code. ### `public string LastTimeInlineName { get; init; }` The name assigned during the most recent inlining. ### `public string FirstTimeInlineName { get; init; }` The name assigned during the first inlining. ### `public bool WasInlined { get; init; }` Whether the element was inlined. ### `public string ActivityType { get; init; }` The activity type. ### `public string SchemeCode { get; init; }` The scheme code. ### `public string State { get; init; }` The state. ### `public bool IsInitial { get; init; }` Whether this is the initial activity. ### `public bool IsFinal { get; init; }` Whether this is a final activity. ### `public bool IsForSetState { get; init; }` Whether the activity is available for setting the state. ### `public bool IsAutoSchemeUpdate { get; init; }` Whether the activity allows automatic scheme updates. ### `public string? InlinedSchemeCode { get; init; }` The inlined scheme code. ### `public bool DisablePersistState { get; init; }` Whether state persistence is disabled. ### `public bool DisablePersistTransitionHistory { get; init; }` Whether transition history persistence is disabled. ### `public bool DisablePersistParameters { get; init; }` Whether parameter persistence is disabled. ### `public string? UserComment { get; init; }` The user comment. ### `public bool HaveImplementation { get; init; }` Whether the activity has an implementation. ### `public bool HavePreExecutionImplementation { get; init; }` Whether the activity has a pre-execution implementation. ### `public List Implementation { get; init; }` The implementation. ### `public List PreExecutionImplementation { get; init; }` The pre execution implementation. ### `public List Annotations { get; init; }` The annotations. ### `public Scheme.ActivityTimeout ExecutionTimeout { get; init; }` The execution timeout. ### `public Scheme.ActivityTimeout IdleTimeout { get; init; }` The idle timeout. ### `public List ExceptionsHandlers { get; init; }` The exceptions handlers. ### `public bool IsState { get; init; }` Whether the activity represents a state. ### `public int? NestingLevel { get; init; }` The nesting level. ### `public string? LocalizedState { get; init; }` The state localized using the request culture. [Previous Scheme.ActionReference](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/Scheme.ActionReference/) [Next Scheme.ActivityTimeout](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/Scheme.ActivityTimeout/)