Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class TaskDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Class to handle the calls to the database regarding task information. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
TaskDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
[Obsolete("The old workflow system have been removed as of CMS 9")]
public class TaskDB : DataAccessBase

Constructors

TaskDB(IDatabaseExecutor)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public TaskDB(IDatabaseExecutor databaseHandler)
Parameters
Type Name Description
IDatabaseExecutor databaseHandler

Methods

Delete(Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete task This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public bool Delete(int taskID)
Parameters
Type Name Description
System.Int32 taskID

The id for task

Returns
Type Description
System.Boolean

Return true if task was deleted successfully

List(Guid)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists all task for a specific workflow instance This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public List<Task> List(Guid workflowInstanceId)
Parameters
Type Name Description
System.Guid workflowInstanceId

The workflow instance id.

Returns
Type Description
System.Collections.Generic.List<Task>

List(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public List<Task> List(string userName)
Parameters
Type Name Description
System.String userName
Returns
Type Description
System.Collections.Generic.List<Task>

Load(Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load task This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public Task Load(int taskID)
Parameters
Type Name Description
System.Int32 taskID

The id for task

Returns
Type Description
Task

Task object

Save(Task)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save/create task This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public int Save(Task task)
Parameters
Type Name Description
Task task

The task

Returns
Type Description
System.Int32

Task id

SaveActivity(Task)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save/create task This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void SaveActivity(Task task)
Parameters
Type Name Description
Task task

The task

Extension Methods