Class TaskDB
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.
Inherited Members
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration]
public class TaskDB : DataAccessBase
Constructors
TaskDB(IDatabaseHandler)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public TaskDB(IDatabaseHandler databaseHandler)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseHandler | databaseHandler |
Methods
Delete(Int32)
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)
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)
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)
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)
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)
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 |