SaaS CMS has officially launched! Learn more now.

Class XomlWorkflowDefinition

Represents a xoml based Workflow definition

Inheritance
System.Object
XomlWorkflowDefinition
Namespace: EPiServer.WorkflowFoundation
Assembly: EPiServer.WorkflowFoundation.dll
Version: 7.19.2
Syntax
public class XomlWorkflowDefinition : WorkflowDefinition, IItem, ISecurable, IDeepCopy<XomlWorkflowDefinition>
Remarks

A xoml based definition consists of a xoml and optionally a code beside file and a rules file. The files will be compiled to an assembly at registration time

Constructors

XomlWorkflowDefinition(String, String, Type, String, String, String, AccessControlList)

Initializes a new instance of the XomlWorkflowDefinition class.

Declaration
public XomlWorkflowDefinition(string name, string description, Type compiledType, string xoml, string rules, string cs, AccessControlList acl)
Parameters
Type Name Description
System.String name

The name of this definition

System.String description

The description for the definition

System.Type compiledType

Type of the compiled assembly

System.String xoml

The xoml representation of the workflow

System.String rules

The rules to be used with xoml (string.Empty if rules not used)

System.String cs

The code beside file (.cs) to be used with xoml (string.Empty if code beside not used)

AccessControlList acl

The access contorl list for the definition

Properties

AllTypes

Returns a list of all compiled versions of this assembly, where each type is given with a fullname including assemblyname

Declaration
public IList<string> AllTypes { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

All types.

CS

Gets or sets the c# code beside for this definition

Declaration
public string CS { get; set; }
Property Value
Type Description
System.String

The CS.

Layout

Gets or sets the layout of the xoml file.

Declaration
public override string Layout { get; set; }
Property Value
Type Description
System.String

The layout.

Overrides
Remarks

The layout is not part of the compilation, it is used when displaying definition on images

Rules

Gets or sets the rules for this definition

Declaration
public string Rules { get; set; }
Property Value
Type Description
System.String

The rules.

Type

Gets the latest compiled type for the workflow definition

Declaration
public override Type Type { get; set; }
Property Value
Type Description
System.Type

The type.

Overrides
Remarks

The set method will throw exception since type is compiled by runtime at registration

Xoml

Gets or sets the Xoml for this definition

Declaration
public string Xoml { get; set; }
Property Value
Type Description
System.String

The xoml.

Methods

Copy()

Makes a deep copy of defintion

Declaration
public override WorkflowDefinition Copy()
Returns
Type Description
WorkflowDefinition

copy

Overrides

DeepCopy()

makes a deep copy of definition

Declaration
public XomlWorkflowDefinition DeepCopy()
Returns
Type Description
XomlWorkflowDefinition

copy

Implements

Extension Methods