Giter VIP home page Giter VIP logo

iwf-java-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iwf-java-sdk's Issues

Fix/refactor WorkflowOptions for client

Remove state options from it for client as it should be loaded from workflow state rather than from request, otherwise it will be confusing.
Remove minimum from method and let start api specify timeout
Also remove one overload to make it clear

Use map[string]Object as initial search attribute

unregistered client can use raw workflow state option instead

WorkflowOptions will be only for client and not for unregistered client

allow setting workflowType

by default it's the simple name but in some advanced use case, ppl want to set the value differently (e.g. DSL workflow)

Implement workflowState Start API

implement https://github.com/cadence-oss/iwf-java/blob/main/core/src/main/java/iwf/core/spring/controller/ApiController.java#L23

AC & steps (separate PRs):

  1. Copy the SDK code from prototype
  2. Copy a demo workflow as user code in test folder, and let it run with the SDK (with the spring controller)
  3. Provide a workflowRegistry with register APIs to register workflow type(use workflow class short name)
  4. On invoking workflowState.Start, find the workflow from workflowRegistry, and invoke the start API from user code, collect the command requests and return back to caller

Check signal

  1. Check if signal name have conflicts
  2. Check if sending a valid signal

Allow customize timeout and backoff retry for State Start/Decide APIs

Currently it's using
default start to close timeout from iwf-server:

10 s

default backoff retry from Temporal server:

		// The default RetryPolicy provided by the server specifies:
		// - InitialInterval of 1 second
		// - BackoffCoefficient of 2.0
		// - MaximumInterval of 100 x InitialInterval
		// - MaximumAttempts of 0 (unlimited)

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.