public async Task UpdateAsync(WorkflowInstance entity, CancellationToken cancellationToken = default)
        {
            await _store.UpdateAsync(entity, cancellationToken);

            await _mediator.Publish(new WorkflowInstanceSaved(entity), cancellationToken);
        }