Documentation ¶
Index ¶
- Constants
- func ActicateJob(cmd *command.ZeebeCommand, ctx context.Context, payload map[string]interface{}) (*[]pb.ActivatedJob, error)
- func Command() (*command.ZeebeCommand, error)
- func CreateProcessInstance(cmd *command.ZeebeCommand, ctx context.Context, payload map[string]interface{}) (*pb.CreateProcessInstanceResponse, error)
- func DeployProcess(cmd *command.ZeebeCommand, ctx context.Context, fileName string, ...) (*pb.ProcessMetadata, error)
- func GetTestFile(fileName string, modifiers ...func(string) string) ([]byte, error)
- func InitTestProcess(cmd *command.ZeebeCommand, ctx context.Context, id string, ...) error
- 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 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 ActicateJob ¶ added in v1.7.0
func ActicateJob( cmd *command.ZeebeCommand, ctx context.Context, payload map[string]interface{}, ) (*[]pb.ActivatedJob, error)
func Command ¶
func Command() (*command.ZeebeCommand, error)
Command initializes the Zeebe command binding and returns it.
func CreateProcessInstance ¶
func CreateProcessInstance( cmd *command.ZeebeCommand, ctx context.Context, 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, ctx context.Context, 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, ctx context.Context, id string, testWorker bindings.Handler, 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 EnvVars ¶
type MetadataPair ¶
type MetadataPair struct {
Key, Value string
}