package go_camunda_client

type CamundaClient interface {
	StartProcess(processDefinitionKey string, request interface{}) (Process, error)
	GetProcess(processId string) (Process, error)
	GetProcessVariable(processId string, variableName string) (VariableResponse, error)
	GetNextTask(processId string) (Task, error)
	GetAllTasks(processId string) ([]Task, error)
	CompleteTask(taskId string, request interface{}) (error)
	GetTaskVariable(taskId string, variableName string) (VariableResponse, error)
	HandleErrors(errorCallback func(error))
}

type Process interface {
	GetId() string
	IsEnded() bool
}

type Task interface {
	GetId() string
	GetName() string
	GetTaskDefinitionKey() string
}

type VariableResponse interface {
	GetValue() string
}
package go_camunda_client

type CamundaClient interface {
	StartProcess(processDefinitionKey string, request interface{}) (Process, error)
	GetProcess(processId string) (Process, error)
	FindProcess(query string) (Process, error)
	GetProcessVariable(processId string, variableName string) (VariableResponse, error)
	GetNextTask(processId string) (Task, error)
	GetAllTasks(processId string) ([]Task, error)
	CompleteTask(taskId string, request interface{}) (error)
	GetTaskVariable(taskId string, variableName string) (VariableResponse, error)
	HandleErrors(errorCallback func(error))
}

type Process interface {
	GetId() string
	IsEnded() bool
}

type Task interface {
	GetId() string
	GetName() string
	GetTaskDefinitionKey() string
}

type VariableResponse interface {
	GetValue() string
}
Add FindProcess to CamundaClient interface
Add FindProcess to CamundaClient interface
