Git Product home page Git Product logo

cadence-samples's Introduction

Cadence Samples

These are some samples to demostrate various capabilities of Cadence client and server. You can learn more about cadence at:

Prerequisite

Run Cadence Server

See instructions for running the Cadence Server: https://github.com/uber/cadence/blob/master/README.md

See instructions for using CLI to register a domain(name as "samples-domain"): https://cadenceworkflow.io/docs/08_cli or https://github.com/uber/cadence/blob/master/tools/cli/README.md

Steps to run samples

Build Samples

make

Run HelloWorld Sample

  • Start workers for helloworld workflow and activities
./bin/helloworld -m worker
  • Start workflow execution for helloworld workflow
./bin/helloworld -m trigger

Commands to run other samples

cron

./bin/cron -m worker

Start workflow with cron expression scheduled to run every minute.

./bin/cron -m trigger -cron "* * * * *"

dsl

./bin/dsl -m worker
./bin/dsl -m trigger -dslConfig cmd/samples/dsl/workflow1.yaml
./bin/dsl -m trigger -dslConfig cmd/samples/dsl/workflow2.yaml

expense

See more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/expense/README.md

fileprocessing

./bin/fileprocessing -m worker
./bin/fileprocessing -m trigger

recipes/branch

./bin/branch -m worker

Run branch workflow

./bin/branch -m trigger -c branch

Run parallel branch workflow

./bin/branch -m trigger -c parallel this will run the parallel branch workflow

recipes/choice

./bin/choice -m worker

Run the single choice workflow

./bin/choice -m trigger -c single

Run the multi choice workflow

./bin/choice -m trigger -c multi

greetings

./bin/greetings -m worker
./bin/greetings -m trigger

pickfirst

./bin/pickfirst -m worker
./bin/pickfirst -m trigger

mutex

./bin/mutex -m worker
./bin/mutex -m trigger

retryactivity

./bin/retryactivity -m worker
./bin/retryactivity -m trigger

splitmerge

./bin/splitmerge -m worker
./bin/splitmerge -m trigger

timer

./bin/timer -m worker
./bin/timer -m trigger

childworkflow

./bin/childworkflow -m worker
./bin/childworkflow -m trigger

dynamic

./bin/dynamic -m worker
./bin/dynamic -m trigger

localactivity

See more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recipes/localactivity/README.md

query

See more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recipes/query/README.md

recovery

See more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recovery/README.md

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.