SaaS CMS has officially launched! Learn more now.

Class WorkflowDefinitionDataSource

DataSource control for WorkflowDefinition

Inheritance
System.Object
GenericDataSource<WorkflowDefinition, System.Collections.Generic.List<WorkflowDefinition>, System.Guid>
WorkflowDefinitionDataSource
Implements
Inherited Members
Namespace: EPiServer.WorkflowFoundation.WebControls
Assembly: EPiServer.WorkflowFoundation.dll
Version: 7.19.2
Syntax
public class WorkflowDefinitionDataSource : GenericDataSource<WorkflowDefinition, List<WorkflowDefinition>, Guid>, IDataSourceMethods

Constructors

WorkflowDefinitionDataSource()

Declaration
public WorkflowDefinitionDataSource()

Properties

CanInsert

Gets a value indicating whether this instance can insert.

Declaration
protected override bool CanInsert { get; }
Property Value
Type Description
System.Boolean

false

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.CanInsert

CanUpdate

Gets a value indicating whether this instance can update.

Declaration
protected override bool CanUpdate { get; }
Property Value
Type Description
System.Boolean

false

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.CanUpdate

DefinitionId

Gets or sets if the data source control should load a specific instance

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

The definition id.

DefinitionName

Gets or sets if the data source control should load a specific instance

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

The name of the definition.

KeyName

Gets the KeyName for this control

Declaration
protected override string KeyName { get; }
Property Value
Type Description
System.String

DefinitionId

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.KeyName

Methods

CreateItem(List<WorkflowDefinition>)

Creates the item. Not implemented

Declaration
protected override WorkflowDefinition CreateItem(List<WorkflowDefinition> items)
Parameters
Type Name Description
System.Collections.Generic.List<WorkflowDefinition> items

The items.

Returns
Type Description
WorkflowDefinition
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.CreateItem(System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>)

Delete(IDictionary)

Deletes the specified values.

Declaration
public override int Delete(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values

The values.

Returns
Type Description
System.Int32
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.Delete(System.Collections.IDictionary)

DeleteItem(WorkflowDefinition)

Deletes the item.

Declaration
protected override void DeleteItem(WorkflowDefinition item)
Parameters
Type Name Description
WorkflowDefinition item

The item.

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.DeleteItem(EPiServer.WorkflowFoundation.WorkflowDefinition)

IsValid(WorkflowDefinition, ref String)

Determines whether the specified item is valid.

Declaration
protected override bool IsValid(WorkflowDefinition item, ref string message)
Parameters
Type Name Description
WorkflowDefinition item

The item.

System.String message

The message.

Returns
Type Description
System.Boolean

true if the specified item is valid; otherwise, false.

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.IsValid(EPiServer.WorkflowFoundation.WorkflowDefinition, System.String)

ListItems()

Lists the workflow definitions

Declaration
protected override List<WorkflowDefinition> ListItems()
Returns
Type Description
System.Collections.Generic.List<WorkflowDefinition>
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.ListItems()

LoadItem(Guid)

Loads the workflow defintion

Declaration
protected override WorkflowDefinition LoadItem(Guid key)
Parameters
Type Name Description
System.Guid key

The key.

Returns
Type Description
WorkflowDefinition
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.LoadItem(System.Guid)

SaveItem(WorkflowDefinition)

Saves the item. Not implemented

Declaration
protected override void SaveItem(WorkflowDefinition item)
Parameters
Type Name Description
WorkflowDefinition item

The item.

Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.WorkflowFoundation.WorkflowDefinition, System.Collections.Generic.List<EPiServer.WorkflowFoundation.WorkflowDefinition>, System.Guid>.SaveItem(EPiServer.WorkflowFoundation.WorkflowDefinition)

Implements

Extension Methods