Git Product home page Git Product logo

camunda-poc's Introduction

Orchestrate Microservices By A Spring Boot Worker

This project contains a worker that can connect a BPMN service task to whatever you need to.

Requirements:

  • Java >= 8
  • Maven

How to run:

  • Download/clone the code in this folder.
  • You need to set your Camunda cloud client connection details in the file application.properties. Simply replace the existing sample values.
  • Run the application:

Now you need to deploy BPMN files (under resources/processes) to camunda modeler.

Batch Items

Demonstrates batch job.

batch flow

'create-items' task receives 'count' variable and creates items collection as an output. 'item-processor' task receives a single item and prints it. once all items are processed 'notify-done' tasks prints the number of total items count.

How to run:

Clone Config Async

Demonstrates classic SAGA with compensation operations.

clone config flow Each participant (points and rewards services) asynchronously perform clone operation and notify when done. Finally, success or failure email is sent. In case of any failure corresponding compensations are executed.

How to run:

NOTE: In order to force rewards step fair Start the Instance with the following variables: { "fail-rewards":"true" }

Redeem Points Sync

Demonstrates synchronous SAGA with compensation operations.

redeem points flow In this scenario a customer redeems his points and gets corresponding reward. The given rewardId should be returned if the flow succeeded (should be implemented asynchronously) The operation is exposed via REST end point: POST /redeem-points.

It also shows how reactive programming can be used with Camunda via ZeebeClient.

NOTES:

  • In the real world scenario the REST response should provide a reference to redemption entity (URL) so the client can poll its state
  • In order to optimize client side websocket can be used (in this case we should consider impl camunda process exporter)

How to run:

NOTE: In order to force rewards step fail, add the following body when calling the REST: { "fail-rewards":"true" }

camunda-poc's People

Contributors

victor-prp avatar

Stargazers

kartik avatar

Watchers

 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.