Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
Just Another External Task Client: Execute ServiceTasks with C#
- Host: GitHub
- URL: https://github.com/tasso94/camunda-external-task-client-dotnet
- Owner: tasso94
- License: apache-2.0
- Created: 2018-12-14T14:29:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T16:11:53.000Z (about 6 years ago)
- Last Synced: 2024-05-21T22:16:54.743Z (7 months ago)
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
}}
```