- By Maven Repository
- Import GIT
- Kotlin 1.3.71
- Spring Boot Starter 2.2.6.RELEASE - test scope*
// 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 */
Package Class | Class, % | Method, % | Line, % |
---|---|---|---|
all classes | 100% (3/ 3) | 50% (10/ 20) | 57% (23/ 40) |
- OPEN SOURCE