Class TriggerActionResultHandler
The result handler that takes a trigger action task (UNIQUE_TASK_ID) result and provides a mechanism for the client to respond to it
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.API.Tasks.Results
Assembly: API.dll
Syntax
[ServerTaskResult("12737356-A000-436B-8640-C18406499341", ServerTaskResultType.Server)]
public class TriggerActionResultHandler : ITaskResultHandler
Methods
ProcessRawResult(ITaskRunner, ServerTaskParameter, Object)
Takes the direct output of the trigger action task and converts it to a TriggerActionResults
Declaration
public Task<ServerTaskResult> ProcessRawResult(ITaskRunner runner, ServerTaskParameter parameter, object result)
Parameters
Type | Name | Description |
---|---|---|
ITaskRunner | runner | The task runner this task has been running in |
ServerTaskParameter | parameter | The initial TriggerActionParameter parameter the task was run with |
System.Object | result | The result returned from processing the task, which is a List of entity type ids and instance ids |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServerTaskResult> | A TriggerActionResults holding the results of the trigger action task (UNIQUE_TASK_ID) |
ProcessResult(String, Int64, ServerTaskParameter, TriggerActionResults, UserInfo, List<(Guid TypeID, Guid ID)>)
Provides the opportunity to handle the result. For this server implementation nothing is done
A client override of this behaviour could take the results and directly display the items that had actions triggered against them
Declaration
public virtual Task ProcessResult(string dbAlias, long accountID, ServerTaskParameter parameter, TriggerActionResults result, UserInfo user, List<(Guid TypeID, Guid ID)> triggeredItems)
Parameters
Type | Name | Description |
---|---|---|
System.String | dbAlias | The current connected database alias the task is running against. |
System.Int64 | accountID | The current account the task was running within |
ServerTaskParameter | parameter | The original TriggerActionParameter the task was initialized with |
TriggerActionResults | result | The result of the task process |
UserInfo | user | The user the task was running under |
System.Collections.Generic.List<System.ValueTuple<System.Guid, System.Guid>> | triggeredItems | A list of entity type ids and instance ids of the items that had actions triggered aginast them |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |