Skip to content

Cory-jbpm/workflow-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Workflow API

CircleCI

Provides the API/SPI for the Serverless Workflow Specification Version 0.1 - https://github.com/cncf/wg-serverless/blob/master/workflow/spec/spec.md

It is the base for implementors of the Serverless Workflow Specification.

Getting Started

To build project and run tets:

mvn clean install

To use this project add the following dependency into your project pom.xml:

<dependency>
    <groupId>org.servlerless</groupId>
    <artifactId>workflow-api</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

For implementors

There are four interfaces which must be implemented:

  • WorflowManager - the main manager for wireless workflow implementations
  • WorkflowValidator - implementations define validation (both schema and workflow) for serverless workflow JSON
  • ExpressionEvaluator - implementations define expression evaluation capabilities for the serverless workflow
  • InitContext - implementation of initializing context (properties) that can be used to initialize workflow values

This api also provides the Service Providers for the three interfaces, namely:

  • WorkflowManagerProvider
  • WorkflowValidatorProvider
  • ExpressionEvaluatorProvider
  • InitContextProvider

To use these in your implementation, or your app, you can for example do:

WorkflowManager manager = WorkflowManagerProvider.getInstance().get();
...

Markup object mapping

This module provides object mappers for both Json and Yaml.

  • To define serverless workflow markup in Json use JsonObjectMapper
  • To define servless workflwo markup in Yaml use YamlObjectMapper

More to come soon!

About

Workflow Java API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%