using Big.Application;
using Big.Domain;
namespace Big.Infrastructure;
///
/// The Workflow Client — the only code that talks to Flowable (§8.2). It starts registratie process
/// instances and drives the OpenZaakAanmaken external-worker jobs over Flowable's REST API
/// (start: service/runtime/process-instances; acquire/complete: external-job-api/…).
///
public sealed class FlowableWorkflowClient(HttpClient http, FlowableOptions options)
: IWorkflowClient, IExternalWorkerClient
{
public Task StartRegistrationProcessAsync(RegistrationId registrationId, CancellationToken ct = default)
{
// STUB (red).
return Task.FromResult("");
}
public Task> AcquireOpenZaakJobsAsync(int maxJobs, CancellationToken ct = default)
{
// STUB (red).
return Task.FromResult>([]);
}
public Task CompleteOpenZaakJobAsync(string jobId, Uri zaakUrl, CancellationToken ct = default)
{
// STUB (red).
return Task.CompletedTask;
}
}