Documentation ¶
Index ¶
- Constants
- func CalcWorker(request *bindings.ReadResponse) ([]byte, error)
- func Command() (*command.ZeebeCommand, error)
- func CreateProcessInstance(cmd *command.ZeebeCommand, payload map[string]interface{}) (*pb.CreateProcessInstanceResponse, error)
- func DeployProcess(cmd *command.ZeebeCommand, fileName string, modifiers ...func(string) string) (*pb.ProcessMetadata, error)
- func GetTestFile(fileName string, modifiers ...func(string) string) ([]byte, error)
- func InitTestProcess(cmd *command.ZeebeCommand, id string, ...) error
- func InterruptProcess()
- func JobTypeModifier(from string, to string) func(string) string
- func JobWorker(jobType string, additionalMetadata ...MetadataPair) (*jobworker.ZeebeJobWorker, error)
- func NameModifier(name string) func(string) string
- func ProcessIDModifier(id string) func(string) string
- func RetryModifier(jobType string, retries int) func(string) string
- func TestID() string
- type CalcResult
- type CalcVariables
- type EnvVars
- type MetadataPair
Constants ¶
const ( // TestProcessFile contains the basic test process file name TestProcessFile string = "test.bpmn" // CalcProcessFile contains the calculation process file name CalcProcessFile string = "calc.bpmn" )
Variables ¶
This section is empty.
Functions ¶
func CalcWorker ¶
func CalcWorker(request *bindings.ReadResponse) ([]byte, error)
CalcWorker is a simple calculation worker
func Command ¶
func Command() (*command.ZeebeCommand, error)
Command initializes the Zeebe command binding and returns it
func CreateProcessInstance ¶
func CreateProcessInstance( cmd *command.ZeebeCommand, payload map[string]interface{}) (*pb.CreateProcessInstanceResponse, error)
CreateProcessInstance creates a process instance and returns the process instance data
func DeployProcess ¶
func DeployProcess( cmd *command.ZeebeCommand, fileName string, modifiers ...func(string) string) (*pb.ProcessMetadata, error)
DeployProcess deploys a test BPMN file. The function also accepts a list of modifier functions which allows to manipulate the content of the returned BPMN file. On success the function returns a JSON with the deployment information
func GetTestFile ¶
GetTestFile loads the content of a BPMN process file. The function also accepts a list of modifier functions which allows to manipulate the content of the returned BPMN file
func InitTestProcess ¶
func InitTestProcess( cmd *command.ZeebeCommand, id string, testWorker func(*bindings.ReadResponse) ([]byte, error), additionalMetadata ...MetadataPair) error
InitTestProcess initializes a test process
func JobTypeModifier ¶
JobTypeModifier modifies the job type of a process
func JobWorker ¶
func JobWorker(jobType string, additionalMetadata ...MetadataPair) (*jobworker.ZeebeJobWorker, error)
JobWorker initializes the Zeebe job worker binding and returns it
func NameModifier ¶
NameModifier modifies the name of a process
func ProcessIDModifier ¶
ProcessIDModifier modifies the process ID in a BPMN file
func RetryModifier ¶
RetryModifier modifies the job retries for a specific job type
Types ¶
type CalcResult ¶
type CalcResult struct {
Result float64 `json:"result"`
}
type CalcVariables ¶
type EnvVars ¶
type MetadataPair ¶
type MetadataPair struct {
Key, Value string
}