Skip to content

flowable/flowable-external-client.net

Repository files navigation

Flowable External Worker Library for .NET

License: license

An External Worker Task in BPMN or CMMN is a task where the custom logic of that task is executed externally to Flowable, i.e. on another server. When the process or case engine arrives at such a task, it will create an external job, which is exposed over the REST API. Through this REST API, the job can be acquired and locked. Once locked, the custom logic is responsible for signalling over REST that the work is done and the process or case can continue.

This project makes implementing such custom logic in .NET easy by not having the worry about the low-level details of the REST API and focus on the actual custom business logic. Integrations for other languages are available, too.

This project is still a work-in-progress client, expect that the API will change. Currently, it's a basic wrapper for the REST API's without any further services.

Sample

Cloud

var auth = new AuthenticationHeaderValue("Bearer", "<personal-access-token>");

var externalWorkerClient = new ExternalWorkerClient(authentication: auth);
var subscription = externalWorkerClient.Subscribe("myTopic", new HandleJobs());

// ...

class HandleJobs : IExternalWorkerCallbackHandler
{
    public IWorkResult Handle(ExternalWorkerAcquireJobResponse job, IWorkResultBuilder work)
    {
        Console.WriteLine("Handle job: " + job.Id);
        return work
            .Success()
            .Variable("testVar", "Hello from C#");
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages