Class SchemeDefinition<T>
OptimaJet.Workflow.Core.Model.SchemeDefinition<T>
Carries an unparsed scheme together with its scheme code and stored-version metadata.
Namespace: OptimaJet.Workflow.Core.Model
public class SchemeDefinition<T> where T : classConstructors
public SchemeDefinition(Guid id, Guid? rootSchemeId, string schemeCode, string rootSchemeCode, T scheme, bool isObsolete, List<string> allowedActivities, string startingTransition, string tenantId = null) #Initializes a new instance of the SchemeDefinition<T> class with an unparsed scheme and stored-version data.
Parameters
Name
Type
Description
idGuidThe identifier of the stored scheme version.
rootSchemeIdNullable<Guid>The identifier of the root process scheme version for a subprocess scheme, or null when no root scheme version is assigned.
schemeCodeStringThe code that identifies the family of stored scheme versions.
rootSchemeCodeStringThe code of the root process scheme for a subprocess scheme, or null when no separate root scheme is assigned.
scheme{T}The unparsed scheme.
allowedActivitiesList<String>The names of parent-process activities during which the subprocess may remain active.
startingTransitionStringThe name of the transition that started the subprocess represented by this scheme.
tenantIdStringThe tenant identifier that scopes the stored scheme version, or null for a shared scheme.
public SchemeDefinition(ProcessDefinition processDefinition, IWorkflowParser<T> parser, string tenantId = null) #Initializes a new instance of the SchemeDefinition<T> class by serializing the supplied ProcessDefinition and copying its scheme code and stored-version metadata. The tenant is supplied separately through
tenantId.Parameters
Name
Type
Description
processDefinitionProcessDefinitionThe parsed and built scheme to serialize and copy stored-version metadata from.
parserIWorkflowParser<T>The IWorkflowParser<TSchemeMedium> used to serialize
processDefinition through IWorkflowParser<TSchemeMedium>.SerializeToSchemeMedium(ProcessDefinition).tenantIdStringThe tenant identifier that scopes the stored scheme version, or null for a shared scheme.
Properties
public T Scheme { get; } #Gets the unparsed scheme.
public string SchemeCode { get; set; } #Gets or sets the scheme code that identifies the family of stored scheme versions.
public string RootSchemeCode { get; set; } #Gets or sets the scheme code of the root process for a subprocess scheme, or null when the scheme does not identify a separate root scheme.
public Guid Id { get; } #Gets the identifier of this stored scheme version.
public Guid? RootSchemeId { get; } #Gets the identifier of the root process scheme version for a subprocess scheme, or null when no root scheme version is assigned.
public string TenantId { get; } #Gets the tenant identifier that scopes this stored scheme version, or null for a shared scheme.
public List<string> AllowedActivities { get; set; } #Gets or sets the names of parent-process activities during which this subprocess may remain active.
public string StartingTransition { get; set; } #Gets or sets the name of the transition that started the subprocess represented by this scheme.
public bool IsObsolete { get; } #Gets a value indicating whether this stored scheme version is obsolete.