interstate

package
v1.18.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowType = "interstate"
	State1       = "S1"
	State21      = "S21"
	State22      = "S22"
	State31      = "S31"
)

*

  • This test workflow has four states, using REST controller to implement the workflow directly. *
  • State1:
  • - WaitUntil method does nothing
  • - Execute method will move to State21 & State22:
  • State21:
  • - WaitUntil will proceed once channel1 has been published to
  • - Execute method will move to State31:
  • State22:
  • - WaitUntil will delay 2s then publish on channel1
  • - Execute method will delay 2s then publish on channel2 & end in a dead-end
  • State31:
  • - WaitUntil will proceed once channel2 has been published to
  • - Execute method will gracefully complete workflow

Variables

View Source
var TestVal1 = iwfidl.EncodedObject{
	Encoding: iwfidl.PtrString("json"),
	Data:     iwfidl.PtrString("test-value1"),
}
View Source
var TestVal2 = iwfidl.EncodedObject{
	Encoding: iwfidl.PtrString("json"),
	Data:     iwfidl.PtrString("test-value2"),
}

Functions

func NewHandler

func NewHandler() *handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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