Class WorkflowDefinitionDataSource

DataSource control for WorkflowDefinition

Inheritance
System.Object
WorkflowDefinitionDataSource
Namespace: EPiServer.WorkflowFoundation.WebControls
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
public class WorkflowDefinitionDataSource : GenericDataSource<WorkflowDefinition, List<WorkflowDefinition>, Guid>

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

CanUpdate

Gets a value indicating whether this instance can update.

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

false

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

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

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

DeleteItem(WorkflowDefinition)

Deletes the item.

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

The item.

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.

ListItems()

Lists the workflow definitions

Declaration
protected override List<WorkflowDefinition> ListItems()
Returns
Type Description
System.Collections.Generic.List<WorkflowDefinition>

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

SaveItem(WorkflowDefinition)

Saves the item. Not implemented

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

The item.