/// <summary>
 /// Sends the ExternalTasks result to the ExternalTaskAPI, using the given 'IExternalTaskAPI' instance.
 /// </summary>
 /// <param name="externalTaskAPI">
 /// The ExternalTaskAPI instance that should process the ExternalTasks result.
 /// </param>
 /// <param name="identity">
 /// The identity to use for sending the ExternalTasks result.
 /// </param>
 /// <param name="workerId">
 /// Id of the Worker wich handled this tasks.
 /// </param>
 public async Task SendToExternalTaskApi(IExternalTaskAPI externalTaskAPI, IIdentity identity, string workerId)
 {
     await externalTaskAPI.HandleBpmnError(identity, workerId, this.externalTaskId, this.errorCode);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sends the ExternalTasks result to the ExternalTaskAPI, using the given 'IExternalTaskAPI' instance.
 /// </summary>
 /// <param name="externalTaskAPI">
 /// The ExternalTaskAPI instance that should process the ExternalTasks result.
 /// </param>
 /// <param name="identity">
 /// The identity to use for sending the ExternalTasks result.
 /// </param>
 /// <param name="workerId">
 /// Id of the Worker wich handled this tasks.
 /// </param>
 public async Task SendToExternalTaskApi(IExternalTaskAPI externalTaskAPI, IIdentity identity, string workerId)
 {
     await externalTaskAPI.FinishExternalTask <TPayload>(identity, workerId, this.externalTaskId, this.result);
 }