parser

package
v0.0.0-...-1f88bb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Description: This package contains the parser service and configuration for the state machine parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateActivityURI

func GenerateActivityURI(namespace string, activityName string) string

GenerateActivityURI generates an activity URI using the standard parser

func GenerateStateMachineURI

func GenerateStateMachineURI(namespace string, stateMachineName string) string

GenerateStateMachineURI generates a state machine URI using the standard parser

func ParseState

func ParseState(definition string) (states.State, error)

ParseState parses a state definition using the standard parser

func ParseStateMachine

func ParseStateMachine(definition string) (*states.StateMachine, error)

ParseStateMachine parses a state machine definition using the standard parser ParseStateMachine parses a state machine definition using the standard parser

func ValidateStateMachine

func ValidateStateMachine(definition string) error

ValidateStateMachine validates a state machine definition

Types

type Parser

type Parser struct {
	Config *config.Config
	// contains filtered or unexported fields
}

Parser parser configuration for workflow definitions Parser parser configuration for workflow definitions

var ExpressParser *Parser

ExpressParser ...

var StandardParser *Parser

StandardParser

func NewParser

func NewParser(config *config.Config) *Parser

NewParser creates a new Parser instance with the given configuration NewParser creates a new Parser instance with the given configuration

func (*Parser) GenerateActivityURI

func (parser *Parser) GenerateActivityURI(namespace string, activityName string) string

func (*Parser) GenerateStateMachineURI

func (parser *Parser) GenerateStateMachineURI(namespace string, stateMachineName string) string

func (*Parser) ParseState

func (parser *Parser) ParseState(definition string) (states.State, error)

func (*Parser) ParseStateMachine

func (parser *Parser) ParseStateMachine(definition string) (*states.StateMachine, error)

ParseStateMachine ...

Directories

Path Synopsis
Package states implements the State behavior for the workflow states are the basic step in the workflow, they can be combined to form a complex workflow
Package states implements the State behavior for the workflow states are the basic step in the workflow, they can be combined to form a complex workflow

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL