engine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(commandContext Context) (interface{}, error)
	Context() context.Context
	IsTransactional() bool
}

Command can be directly executed but cannot be executed by ComandExecutor in another command, otherwise CommandContext of parent command may be deleted mistakenly by interceptors.

type Context

type Context interface {
	SetAgenda(agenda agenda.CinderellaEngineAgenda)
	SetProcessEngineConfiguration(processEngineConfiguration ProcessEngineConfiguration)
	GetAgenda() agenda.CinderellaEngineAgenda
	GetProcessEngineConfiguration() ProcessEngineConfiguration
}

type Deployer

type Deployer interface {
	Deploy(deploymentEntity any, deploymentSettings map[string]interface{})
	GetProcess(key string) model.Process
}

type Executor

type Executor interface {
	Exe(conf Command) (interface{}, error)
}

type ExpressionManager

type ExpressionManager interface {
	CreateExpression(expression string) expression.Expression
	EvaluationContext() spel.StandardEvaluationContext
}

type ICommandContextFactory

type ICommandContextFactory interface {
	CreateCommandContext() Context
}

type Interceptor

type Interceptor interface {
	Execute(command Command) (interface{}, error)

	SetNext(next Interceptor)
}

type ProcessEngineConfiguration

type ProcessEngineConfiguration interface {
	GetCommandExecutor() Executor
	GetIDGenerator() idgenerator.IDGenerator
	GetDeploymentSettings() map[string]interface{}
	GetBpmnDeployer() Deployer
	GetExpressionManager() ExpressionManager
}

Jump to

Keyboard shortcuts

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