GithubHelp home page GithubHelp logo

intuit / chain-z Goto Github PK

View Code? Open in Web Editor NEW
1.0 8.0 7.0 83 KB

Asynchronous execution made simple

License: MIT License

Java 100.00%
asynchronous asynchronous-tasks orchestration orchestration-framework saga-pattern taskexecutor tasks task-orchestration

chain-z's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chain-z's Issues

Support for adding the task based on predicate as a condition

Add support for adding task based on the condition.
It can accept a pair of task and condition or maybe a task and a predicate condition.
Framework should automatically decide and add the tasks if condition is true.

new RxExecutionChain(new State(), taskA)
.next(taskB,condition) .next(taskc,condition)
.execute();

condition can be in for of a predicate or any other java lambda

Expose Exception in the state response

Currently Exception is not exposed outside of the task and someone will have to catch the exception in the task and do the handling.

Idea is to have an exception object for each task and expose it in the State response for caller to check.

Fix labeler pipeline run for forked PRs

Issue Template

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Firmware Version:
  • Operating System:
  • SDK version:
  • Any other details that is relevant:

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Failure Logs

Please include any relevant log snippets or files here.

Support for adding task based on condition

Context

Add support for adding task based on the condition.
It can accept a pair of task and condition or maybe a task and a predicate condition.
Framework should automatically decide and add the tasks if condition is true.

new RxExecutionChain(new State(), taskA)
.next(taskB,condition) .next(taskc,condition)
.execute();

condition can be boolean.

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.