using Big.Application;
namespace Big.Infrastructure;
///
/// The worker-facing side of the Workflow Client: acquiring and completing Flowable external-worker
/// jobs (ADR-0009). Kept separate from the Application's because job
/// acquisition is a Flowable-specific polling mechanic the application never needs to know about.
/// Implemented by — the only code that talks to Flowable (§8.2).
///
public interface IExternalWorkerClient
{
/// Acquire and lock up to OpenZaakAanmaken jobs.
Task> AcquireOpenZaakJobsAsync(int maxJobs, CancellationToken ct = default);
/// Complete an acquired job, passing the opened zaak URL back into the process.
Task CompleteOpenZaakJobAsync(string jobId, Uri zaakUrl, CancellationToken ct = default);
}