Skip to content

Repository files navigation

States Language

This library contains some helper classes to help creating and modifying workflow using the Amazon States Language. This is the workflow description language used by AWS StepFunctions

This project starts as a port of the java livrary light-workflow-4j project.

StateMachine Builder

StateMachinestateMachine=StateMachineBuilder.StateMachine().StartAt("InitialState").TimeoutSeconds(30).Comment("My Simple State Machine").State("InitialState",StateMachineBuilder.SucceedState().Comment("Initial State").InputPath("$.input").OutputPath("$.output")).Build();stringjson=stateMachine.ToJson();varbuilder=StateMachine.FromJson(json);

Tools

InputOutputProcessor

publicinterfaceIInputOutputProcessor{JTokenGetEffectiveInput(JTokeninput,OptionalStringinputPath,JObjectpayload,JObjectcontext);JTokenGetEffectiveResult(JTokenoutput,JObjectpayload,JObjectcontext);JTokenGetEffectiveOutput(JTokeninput,JTokenresult,OptionalStringoutputPath,OptionalStringresultPath);}

IntrinsicFunctions support

There is a IIntrinsicFunctionRegistry available to register your StateLanguage Intrinsic functions.

The Standard Intrinsic functions defined here are already included in the registry.

publicinterfaceIIntrinsicFunctionRegistry{voidRegister(stringname,IntrinsicFunctionFuncfunc);voidUnregister(stringname);}

About

Helper classes to help creating and modifying workflow described using the Amazon States Language used by AWS StepFunctions

Resources

Contributing

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages