Git Product home page Git Product logo

saga's Introduction

SAGA'S OPEN SOURCE BY KOTLIN

Use

  • By Maven Repository
  • Import GIT

Dependencies

  • Kotlin 1.3.71
  • Spring Boot Starter 2.2.6.RELEASE - test scope*

Example

// code away!

/* Extends Workflow class */
open class WorkflowTest( 
        override var data: Object? = null /* Overridden data type to your context */
        override var status: Object? = null /* Overridden status type to your context */
        var repository: JpaRepository<Object, UUID>? = null /* Added repository to your context */
) : Workflow(data = data, status = status) 
 /* Optional implements rollback error flow and updated status flow  */

@Service /* Build service class and implements business rules */
open class Service: WorkflowService()  

WorkflowTest() /* Execute sync or async and sequentially  */
  .save("INITIAL") /* Optional save workflow progress */
  .flow(service, async = true) /* Inject your sync/async service  */
  .save("PROCESSING")
  .insideFlow { conditional -> conditional.takeIf { that -> (that?.data as Product).goPay!! }
  ?.flow(paymentService) } /* conditional flow */
  .save("SUCCESS")
  /* Implements workflow rules */

Test Coverage

Package Class Class, % Method, % Line, %
all classes 100% (3/ 3) 50% (10/ 20) 57% (23/ 40)

Build Status

License

  • OPEN SOURCE

Article PT-BR

saga's People

Contributors

marcelresendezup avatar

Stargazers

 avatar Danilo Valério da Silva avatar Flávio Visetti avatar Rodrigo Melo avatar Lano Thiago avatar asengardeons@hotmail.com avatar Diego Kascharowski avatar Rodrigo Lessa avatar Dedeco avatar Fabio Amorim avatar  avatar  avatar

Watchers

James Cloos avatar Marcel Fonseca 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.