Git Product home page Git Product logo

camunda-external-task-client-spring-boot's Introduction

Build Status

Camunda External Task Client as Spring Boot Starter

This project provides a Spring Boot starter that allows you to implement an external task worker for Camunda. It uses the Camunda REST API to fetch, lock and complete external services tasks. It is based on the Camunda External Task Client

UNDER DEVELOPMENT

This project is not yet there and still need to be worked on.

There is an implementation here: https://github.com/osteinhauer/camunda-external-task-client-java-spring. Currently undecided if this will be based on that code or not.

Dependency

You need this dependency in order to get started

<dependencies>
  ...
  <dependency>
    <groupId>org.camunda.bpm.extension.spring.boot</groupId>
    <artifactId>camunda-external-task-client-spring-boot-starter</artifactId>
    <version>...</version>
  </dependency>
  ...
</dependencies>

External Task Subscription

@ExternalTaskSubscription("invoiceCreator")
@Component
public class InvoiceCreator implents ExternalTaskHandler {
    void execute(ExternalTask externalTask, ExternalTaskService externalTaskService);
}

Configuration

In order to enable the external task subscriptions you have to do use the EnableExternalTaskSubscriptions annotation. You can configure the Camunda endpoint and other properties there.

@Configuration
@EnableExternalTaskSubscriptions(baseUrl = "http://localhost:8080/rest")
public class SimpleConfiguration {
}

You can also use other ways to configure it via normal Spring possibilities:

camunda:
  bpm:
    client:
      base-url: http://localhost:8080/rest

Check tests and examples for usage.

Use Spring (not Spring Boot)

You can also use the basic Spriung integration without the Spring Boot Starter:

<dependencies>
  ...
  <dependency>
    <groupId>org.camunda.bpm.extension.spring</groupId>
    <artifactId>camunda-external-task-client-spring</artifactId>
    <version>...</version>
  </dependency>
  ...
</dependencies>

Todo / Future features

  • Connection resilience / retrying in case the engine is not available (also during startup of the client)

  • Multiple ExternalTask subsctiptions on one handler?

    @ExternalTask("invoiceCreator")
    @ExternalTask(topicName = "invoiceCreator", lockDuration = 1000)
    @ExternalTask(topicName = "offerCreator", lockDuration = 2000)
    @Component
    public class InvoiceCreator implents ExternalTaskHandler {
        void execute(ExternalTask externalTask, ExternalTaskService externalTaskService);
    }

camunda-external-task-client-spring-boot's People

Contributors

andreagiardini avatar berndruecker avatar osteinhauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.