Class WorkflowTaskEventArgs
Used in communication between host and Workflow activitys. Represents an Task related event.
Inheritance
Namespace: EPiServer.WorkflowFoundation.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0Syntax
public class WorkflowTaskEventArgs : ExternalDataEventArgs
Remarks
The cached item of type Task can be recieved from CacheService using System.IServiceProvider (can be recieved e.g. by overriding Initialize on Workflow class).
Examples
Shows how Cache service can be used
Constructors
WorkflowTaskEventArgs(Task, String, Guid)
Initializes a new instance of the WorkflowTaskEventArgs class.
Declaration
public WorkflowTaskEventArgs(Task task, string cacheKey, Guid workflowInstanceId)
Parameters
Type | Name | Description |
---|---|---|
Task | task | The task. |
System.String | cacheKey | The cache key. |
System.Guid | workflowInstanceId | The workflow instance id. |
Remarks
The cached item of type Task can be recieved from EPiServerService using IServiceProvider(can be recieved e.g. by overriding Initialize on Workflow class).
Examples
Shows how Cache service can be used
Properties
AssignedTo
Gets user the task is tassigned to
Declaration
public string AssignedTo { get; }
Property Value
Type | Description |
---|---|
System.String | The assigned to. |
CacheKey
Gets the cache key which can be used to get the Task object
Declaration
public string CacheKey { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The cached item of type Task can be recieved from CacheService using System.IServiceProvider (can be recieved e.g. by overriding Initialize on Workflow class).
Examples
Shows how Cache service can be used
PreviousStatus
Gets the previous status.
Declaration
public TaskStatus PreviousStatus { get; }
Property Value
Type | Description |
---|---|
TaskStatus | The previous status. |
Status
Gets the current status.
Declaration
public TaskStatus Status { get; }
Property Value
Type | Description |
---|---|
TaskStatus | The status. |
TaskDescription
Gets the description for the task
Declaration
public string TaskDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The description |
TaskId
Gets the task id.
Declaration
public int TaskId { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The task id. |
TaskSubject
Gets the subject for the task
Declaration
public string TaskSubject { get; }
Property Value
Type | Description |
---|---|
System.String | The subject. |