Documentation
¶
Index ¶
- type Config
- type ProcessDeploymentStart
- func (this *ProcessDeploymentStart) CheckFogProcess(token auth.Token, hubId string, businessKey string) (found bool, state State, err error)
- func (this *ProcessDeploymentStart) CheckProcess(token auth.Token, businessKey string) (found bool, state State, err error)
- func (this *ProcessDeploymentStart) Do(task model.CamundaExternalTask) (modules []model.Module, outputs map[string]interface{}, err error)
- func (this *ProcessDeploymentStart) GetFogProcessInstances(token auth.Token, hubId string, businessKey string) (result model.HistoricProcessInstances, err error)
- func (this *ProcessDeploymentStart) Start(token auth.Token, deploymentId string, inputs map[string]interface{}, ...) (instance ProcessInstance, err error)
- func (this *ProcessDeploymentStart) StartFog(token auth.Token, hubId string, deploymentId string, ...) error
- func (this *ProcessDeploymentStart) Undo(modules []model.Module, reason error)
- type ProcessInstance
- type SmartServiceRepo
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProcessEngineWrapperUrl string `json:"process_engine_wrapper_url"`
FogProcessDeploymentUrl string `json:"fog_process_deployment_url"`
ProcessSyncUrl string `json:"process_sync_url"`
WorkerParamPrefix string `json:"worker_param_prefix"`
ProcessDeploymentModuleType string `json:"process_deployment_module_type"`
HealthCheckInterval string `json:"health_check_interval"`
}
type ProcessDeploymentStart ¶
type ProcessDeploymentStart struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config, libConfig configuration.Config, auth *auth.Auth, smartServiceRepo SmartServiceRepo) *ProcessDeploymentStart
func (*ProcessDeploymentStart) CheckFogProcess ¶ added in v0.0.18
func (*ProcessDeploymentStart) CheckProcess ¶ added in v0.0.18
func (*ProcessDeploymentStart) Do ¶
func (this *ProcessDeploymentStart) Do(task model.CamundaExternalTask) (modules []model.Module, outputs map[string]interface{}, err error)
func (*ProcessDeploymentStart) GetFogProcessInstances ¶ added in v0.0.18
func (this *ProcessDeploymentStart) GetFogProcessInstances(token auth.Token, hubId string, businessKey string) (result model.HistoricProcessInstances, err error)
func (*ProcessDeploymentStart) Start ¶
func (this *ProcessDeploymentStart) Start(token auth.Token, deploymentId string, inputs map[string]interface{}, businessKey string) (instance ProcessInstance, err error)
type ProcessInstance ¶
type ProcessInstance struct {
Id string `json:"id,omitempty"`
DefinitionId string `json:"definitionId,omitempty"`
BusinessKey string `json:"businessKey,omitempty"`
CaseInstanceId string `json:"caseInstanceId,omitempty"`
Ended bool `json:"ended,omitempty"`
Suspended bool `json:"suspended,omitempty"`
TenantId string `json:"tenantId,omitempty"`
}
type SmartServiceRepo ¶
type SmartServiceRepo interface {
GetInstanceUser(instanceId string) (userId string, err error)
UseModuleDeleteInfo(info model.ModuleDeleteInfo) error
ListExistingModules(processInstanceId string, query model.ModulQuery) (result []model.SmartServiceModule, err error)
}
Click to show internal directories.
Click to hide internal directories.