Interface IWorkflowProcessor
Singleton application service for processing activities.
Namespace: Kephas.Workflow
Assembly: Kephas.Workflow.dll
Syntax
[SingletonAppServiceContract]
public interface IWorkflowProcessor
Methods
| Improve this Doc View SourceExecuteAsync(IActivity, Object, IExpando, IActivityContext, CancellationToken)
Executes the activity asynchronously, enabling the activity execution behaviors.
Declaration
Task<object> ExecuteAsync(IActivity activity, object target, IExpando arguments, IActivityContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IActivity | activity | The activity to execute. |
System.Object | target | The activity target. |
IExpando | arguments | The execution arguments. |
IActivityContext | context | The execution context. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A promise of the execution result. |
Remarks
The provided target and arguments may overwrite those set in the activity.