public async Task HandleBpmnError(IIdentity identity, string workerId, string externalTaskId, string errorCode) { var uri = $"task/{externalTaskId}/handle_bpmn_error"; var request = new HandleBpmnErrorRequest ( workerId, errorCode ); await this.SendPostToExternalTaskApi(identity, uri, request); }
public async Task HandleBpmnError(IIdentity identity, string workerId, string externalTaskId, string errorCode) { var endpoint = RestSettings.Paths.FinishExternalTaskWithBpmnError.Replace(RestSettings.Params.ExternalTaskId, externalTaskId); var handleBpmnErrorRequest = new HandleBpmnErrorRequest ( workerId, errorCode ); await this.PostExternalTaskRequest <HandleBpmnErrorRequest>(identity, endpoint, handleBpmnErrorRequest); }