Used in communication between host and Workflow activitys. Represents an Task related event.
Namespace:
EPiServer.WorkflowFoundation.ActivitiesAssembly: EPiServer.WorkflowFoundation (in EPiServer.WorkflowFoundation.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
[SerializableAttribute] public class WorkflowTaskEventArgs : ExternalDataEventArgs |
Remarks
The cached item of type Task can be recieved from
CacheService using IServiceProvider
(can be recieved e.g. by overriding Initialize on Workflow class).
Examples
Shows how Cache service can be used
CopyC#
public class CustomWorkflow : SequentialWorkflowActivity { CacheService _cacheService; protected override void Initialize(System.IServiceProvider provider) { base.Initialize(provider); _cacheService = (CacheService)provider.GetService(typeof(CacheService)); } //Event handler for a page related event activity private void OnPageEvent(object sender, WorkflowPageEventArgs e) { PageEventArgs pageArgs = (PageEventArgs)_cacheService.GetItem(e.CacheKey); string pageName = pageArgs.Page.PageName; } }
Inheritance Hierarchy
System..::.Object
System..::.EventArgs
System.Workflow.Activities..::.ExternalDataEventArgs
EPiServer.WorkflowFoundation.Activities..::.WorkflowTaskEventArgs
System..::.EventArgs
System.Workflow.Activities..::.ExternalDataEventArgs
EPiServer.WorkflowFoundation.Activities..::.WorkflowTaskEventArgs