Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tasso94/camunda-external-task-client-dotnet

Just Another External Task Client: Execute ServiceTasks with C#
https://github.com/tasso94/camunda-external-task-client-dotnet

Last synced: 21 days ago
JSON representation

Just Another External Task Client: Execute ServiceTasks with C#

Awesome Lists containing this project

README

        

# Camunda External Task Client Dotnet
Just Another External Task Client: Execute ServiceTasks with C#

```C#
using System;
using Camunda;

class App
{
static void Main()
{
// bootstrap the external task client
ExternalTaskClient client = ExternalTaskClient.create()
.endpoint("http://localhost:8080/engine-rest")
.build();

// subscribe to a topic name
TopicSubscription topic = client.subscribe("invoiceCreator")
.handler(new MyHandler())
.open();
}
}

class MyHandler : IHandler {

// customized handler
public void execute(ExternalTask task, ExternalTaskService externalTaskService) {

// complete external task
externalTaskService.complete(task);

Console.WriteLine("External Task " + task + " successfully completed!\n");
}

}
```