package
0.8.0
Repository: https://github.com/adrianwit/endly.git
Documentation: pkg.go.dev

# README

Workflow service

Workflow Service

Workflow service provide capability to run task, action from any defined workflow.

Service IdActionDescriptionRequestResponse
workflowrunrun workflow with specified tasks and parametersRunRequestRunResponse
workflowgotoswitch current execution to the specified task on current workflowGotoRequestGotoResponse
workflowswitchrun matched case action or taskSwitchRequestSwitchResponse
workflowexitterminate execution of active workflow (caller)n/an/a
workflowfailfail workflowFailRequestn/a

Predefined workflows

Predefined workflows

Predefined set provides commonly used workflow for services, app to build, deploy and testing.

Workflows

# Functions

FirstWorkflow returns last workflow.
GetResource returns workflow resource.
Last returns last process.
LastWorkflow returns last workflow.
New returns a new workflow Service.
NewAsyncEvent creates a new AsyncEvent.
NewDao returns a new NewDao.
NewEndEvent create a new EndEvent.
NewInitEvent creates a new workflow init event.
NewLoadedEvent create a new workflow load event.
New creates a new event logger.
NewModifiedStateEvent creates a new modified state event.
NewRunRequest creates a new runWorkflow request.
NewRunRequestFromURL creates a new request from URL.
Remove push process to context.
Push push process to context.

# Constants

ServiceID represents workflow Service id.

# Structs

AsyncEvent represents an async action event.
Dao represents a workflow loader.
EndEvent represents Activity end event type.
ExitRequest represents workflow exit request, to exit a caller workflow.
ExitResponse represents workflow exit response.
FailRequest represents fail request.
FailResponse represents workflow exit response.
GotoRequest represents goto task action, this request will terminate current task execution to switch to specified task.
InitEvent represents a new workflow init event.
LoadedEvent represents workflow load event.
LoadRequest represents workflow load request from the specified source.
LoadResponse represents loaded workflow.
Logger represent event logger to drop event details in the provied directory.
ModifiedStateEvent represent modified state event.
NopParrotRequest represent parrot request.
NopRequest represent no operation.
PrintRequest represent print request.
RegisterRequest represents workflow register request.
RegisterResponse represents workflow register response.
RunRequest represents workflow runWorkflow request.
RunResponse represents workflow runWorkflow response.
Service represents a workflow service.
SwitchCase represent matching candidate case.
SwitchRequest represent switch action request.

# Interfaces

GotoResponse represents workflow task response.
SwitchResponse represents actual action or task response.