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.
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);publicinterfaceIInputOutputProcessor{JTokenGetEffectiveInput(JTokeninput,OptionalStringinputPath,JObjectpayload,JObjectcontext);JTokenGetEffectiveResult(JTokenoutput,JObjectpayload,JObjectcontext);JTokenGetEffectiveOutput(JTokeninput,JTokenresult,OptionalStringoutputPath,OptionalStringresultPath);}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);}