Documentation ¶
Index ¶
- func IsIntegral(val float64) bool
- type AbstractEntity
- type AbstractVariableScopeImpl
- type DefaultHistoryManager
- type DeploymentEntity
- func (deploymentEntity *DeploymentEntity) AddResource(resource ResourceEntity)
- func (deploymentEntity *DeploymentEntity) GetKey() string
- func (deploymentEntity *DeploymentEntity) GetName() string
- func (deploymentEntity *DeploymentEntity) GetResources() ResourceEntity
- func (deploymentEntity *DeploymentEntity) SetDeploymentTime(deploymentTime time.Time)
- func (deploymentEntity *DeploymentEntity) SetKey(key string)
- func (deploymentEntity *DeploymentEntity) SetName(name string)
- func (deploymentEntity *DeploymentEntity) SetResources(resourceEntity ResourceEntity)
- func (deploymentEntity *DeploymentEntity) SetTenantId(tenantId string)
- type DeploymentEntityManager
- type Entity
- type EntityManager
- type ExecutionEntity
- func (execution ExecutionEntity) GetCurrentActivityId() string
- func (execution ExecutionEntity) GetCurrentFlowElement() delegate.FlowElement
- func (execution ExecutionEntity) GetDeploymentId() string
- func (execution *ExecutionEntity) GetExecutionId() string
- func (execution ExecutionEntity) GetProcessDefinitionId() string
- func (execution ExecutionEntity) GetProcessInstanceId() string
- func (execution ExecutionEntity) GetProcessVariable() map[string]interface{}
- func (execution ExecutionEntity) GetSourceActivityExecution() ExecutionEntity
- func (execution ExecutionEntity) GetSpecificVariable(variableName string) (Variable, error)
- func (execution *ExecutionEntity) GetTenantId() *string
- func (execution ExecutionEntity) GetVariable() map[string]interface{}
- func (execution ExecutionEntity) HandleVariable(variables []Variable) map[string]interface{}
- func (execution *ExecutionEntity) SetBusinessKey(businessKey string)
- func (execution *ExecutionEntity) SetCurrentActivityId(currentActivityId string)
- func (execution *ExecutionEntity) SetCurrentFlowElement(flow delegate.FlowElement)
- func (execution *ExecutionEntity) SetDeploymentId(deploymentId string)
- func (execution *ExecutionEntity) SetProcessDefinitionId(processDefineId string)
- func (execution *ExecutionEntity) SetProcessInstanceId(processInstanceId string)
- type ExecutionEntityManager
- func (executionEntityManager ExecutionEntityManager) CreateExecution(executionEntity *ExecutionEntity) error
- func (executionEntityManager ExecutionEntityManager) DeleteExecution(executionId string) error
- func (executionEntityManager ExecutionEntityManager) FindById(executionId string) (ExecutionEntity, error)
- func (executionEntityManager ExecutionEntityManager) List(listRequest execution.ListRequest) ([]ExecutionEntity, error)
- func (executionEntityManager ExecutionEntityManager) MigrateExecutionActID(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, ...) error
- func (executionEntityManager ExecutionEntityManager) MigrateExecutionProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
- func (executionEntityManager ExecutionEntityManager) MigrateProcessInstanceBusinessStatus(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, ...) error
- func (executionEntityManager ExecutionEntityManager) MigrateProcessInstanceProcDefIdAndStartActId(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
- func (executionEntityManager ExecutionEntityManager) RecordBusinessStatus(delegateExecution delegate.DelegateExecution) error
- type HistoricActivityInstanceEntity
- type HistoricActivityInstanceEntityManager
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) DeleteByExecutionId(entity delegate.DelegateExecution) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) DeleteByProcessInstanceId(processInstanceId, actId string) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) List(listRequest historicactinst.ListRequest) ([]HistoricActivityInstanceEntity, error)
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) MigrateAct(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, ...) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) MigrateProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByExecutionId(element delegate.FlowElement, entity delegate.DelegateExecution, ...) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByExecutionIdAndActId(executionId, activityId string, deleteReason *string) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByProcessInstanceId(processInstanceId string, deleteReason *string) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActivityStart(entity delegate.DelegateExecution) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordBusinessDataByExecutionId(entity delegate.DelegateExecution, businessParameter, businessResult string) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordSequenceFlow(entity delegate.DelegateExecution) error
- func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordTaskId(task model.ActRuTask) error
- type HistoricIdentityLinkEntity
- type HistoricIdentityLinkEntityManager
- type HistoricProcessInstanceEntity
- type HistoricProcessInstanceEntityManager
- func (historicProcessInstanceEntityManager HistoricProcessInstanceEntityManager) FindById(historicProcessInstanceId string) (HistoricProcessInstanceEntity, error)
- func (historicProcessInstanceEntityManager HistoricProcessInstanceEntityManager) List(listRequest historicprocess.ListRequest) ([]HistoricProcessInstanceEntity, error)
- type HistoricTaskInstanceEntity
- type HistoricTaskInstanceEntityManager
- type IdentityLinkEntity
- type IdentityLinkEntityManager
- func (identityLinkEntityManager IdentityLinkEntityManager) CreateIdentityLink(identityLink model.ActRuIdentitylink) (err error)
- func (identityLinkEntityManager IdentityLinkEntityManager) DeleteByProcessInstanceId(processInstanceId string) error
- func (identityLinkEntityManager IdentityLinkEntityManager) DeleteIdentityLinksByTaskId(taskId string) error
- func (identityLinkEntityManager IdentityLinkEntityManager) SelectByProcessInstanceId(processInstanceId string) ([]*IdentityLinkEntity, error)
- type ProcessDefinitionEntity
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetDeploymentId() string
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetDescription() string
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetKey() string
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetName() string
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetResourceName() string
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetVersion() int
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetCategory(category string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetDeploymentId(deploymentId string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetDescription(description string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetKey(key string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetName(name string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetResourceName(resourceName string)
- func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetVersion(version int)
- type ProcessDefinitionEntityManager
- func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindByDeploymentId(deploymentId string) (ProcessDefinitionEntity, error)
- func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindLatestProcessDefinitionByKey(processDefinitionKey string) (ProcessDefinitionEntity, error)
- func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindProcessDefinitionById(processDefinitionId string) (ProcessDefinitionEntity, error)
- func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindResourceEntityByProcessDefinitionById(processDefinitionId string) (ResourceEntity, error)
- func (processDefinitionEntityManager ProcessDefinitionEntityManager) Insert(processDefinition *model.ActReProcdef) (ProcessDefinitionEntity, error)
- type ResourceEntity
- func (resourceEntity ResourceEntity) GetBytes() []byte
- func (resourceEntity *ResourceEntity) GetDeploymentId() string
- func (resourceEntity *ResourceEntity) GetName() string
- func (resourceEntity *ResourceEntity) SetBytes(bytes []byte)
- func (resourceEntity *ResourceEntity) SetDeploymentId(deploymentId string)
- func (resourceEntity *ResourceEntity) SetName(name string)
- type ResourceEntityManager
- type TaskEntity
- func (taskEntiy *TaskEntity) GetAssignee() *string
- func (taskEntiy *TaskEntity) GetClaimTime() *time.Time
- func (taskEntiy *TaskEntity) GetExecutionId() string
- func (taskEntiy TaskEntity) GetSpecificVariable(variableName string) (variable.Variable, error)
- func (taskEntiy *TaskEntity) GetTaskDefineKey() string
- func (taskEntiy TaskEntity) GetVariable() map[string]interface{}
- func (taskEntiy *TaskEntity) SetAssignee(assignee *string)
- func (taskEntiy *TaskEntity) SetClaimTime(claimTime *time.Time)
- func (taskEntiy *TaskEntity) SetExecutionId(executionId string)
- func (taskEntiy *TaskEntity) SetStartTime(startTime time.Time)
- func (taskEntiy *TaskEntity) SetTaskDefineKey(taskDefineKey string)
- func (taskEntiy *TaskEntity) SetTaskDefineName(taskDefineName string)
- type TaskEntityManager
- func (taskEntityManager TaskEntityManager) ChangeTaskAssignee(taskEntity TaskEntity, userId *string) error
- func (taskEntityManager TaskEntityManager) DeleteTask(task TaskEntity, deleteReason *string) error
- func (taskEntityManager TaskEntityManager) FindById(id string) (TaskEntity, error)
- func (taskEntityManager TaskEntityManager) FindByProcessInstanceId(processInstanceId string) ([]TaskEntity, error)
- func (taskEntityManager TaskEntityManager) InsertTask(taskEntity *TaskEntity) error
- func (taskEntityManager TaskEntityManager) List(listRequest task.ListRequest) ([]TaskEntity, error)
- func (taskEntityManager TaskEntityManager) MigrateNameAndTaskDefKey(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, ...) error
- func (taskEntityManager TaskEntityManager) MigrateProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
- type VariableEntity
- type VariableEntityManager
- func (variableEntityManager VariableEntityManager) DeleteByProcessInstanceId(processInstanceId string) error
- func (variableEntityManager VariableEntityManager) DeleteVariableInstanceByTask(taskId string)
- func (variableEntityManager VariableEntityManager) UpsertHistoricVariable(v variable.Variable) (err error)
- func (variableEntityManager VariableEntityManager) UpsertVariable(v variable.Variable) error
- type VariableScopeImpl
- func (variableScope VariableScopeImpl) GetVariableLocal() (variables map[string]interface{})
- func (variableScope VariableScopeImpl) SetVariable(execution delegate.DelegateExecution, variables map[string]interface{}) error
- func (variableScope VariableScopeImpl) SetVariableLocal(variables map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIntegral ¶ added in v0.0.3
Types ¶
type AbstractEntity ¶
type AbstractEntity struct {
Id string `json:"id"`
}
func (*AbstractEntity) GetId ¶
func (entity *AbstractEntity) GetId() string
func (*AbstractEntity) SetId ¶
func (entity *AbstractEntity) SetId(id string)
type AbstractVariableScopeImpl ¶
type AbstractVariableScopeImpl interface {
GetSourceActivityExecution() ExecutionEntity
}
type DefaultHistoryManager ¶
type DefaultHistoryManager struct { }
type DeploymentEntity ¶
type DeploymentEntity struct { Name string Key string ProcessId string TenantId string DeploymentTime time.Time IsNew bool ResourceEntity ResourceEntity }
func (*DeploymentEntity) AddResource ¶
func (deploymentEntity *DeploymentEntity) AddResource(resource ResourceEntity)
func (*DeploymentEntity) GetKey ¶
func (deploymentEntity *DeploymentEntity) GetKey() string
func (*DeploymentEntity) GetName ¶
func (deploymentEntity *DeploymentEntity) GetName() string
func (*DeploymentEntity) GetResources ¶
func (deploymentEntity *DeploymentEntity) GetResources() ResourceEntity
func (*DeploymentEntity) SetDeploymentTime ¶
func (deploymentEntity *DeploymentEntity) SetDeploymentTime(deploymentTime time.Time)
func (*DeploymentEntity) SetKey ¶
func (deploymentEntity *DeploymentEntity) SetKey(key string)
func (*DeploymentEntity) SetName ¶
func (deploymentEntity *DeploymentEntity) SetName(name string)
func (*DeploymentEntity) SetResources ¶
func (deploymentEntity *DeploymentEntity) SetResources(resourceEntity ResourceEntity)
func (*DeploymentEntity) SetTenantId ¶
func (deploymentEntity *DeploymentEntity) SetTenantId(tenantId string)
type DeploymentEntityManager ¶
type DeploymentEntityManager struct { }
func GetDeploymentEntityManager ¶
func GetDeploymentEntityManager() *DeploymentEntityManager
func (DeploymentEntityManager) FindById ¶
func (deploymentEntityManager DeploymentEntityManager) FindById(deploymentId string) (DeploymentEntity, error)
type EntityManager ¶
type ExecutionEntity ¶
type ExecutionEntity struct { AbstractEntity *VariableScopeImpl BusinessKey string CurrentFlowElement delegate.FlowElement DeploymentId string ProcessInstanceId string CurrentActivityId string BusinessStatus string `json:"businessStatus"` Suspended bool `json:"suspended"` Ended bool `json:"ended"` ProcessDefinitionId string `json:"processDefinitionId"` ProcessDefinitionName string `json:"processDefinitionName"` ProcessDefinitionDescription string `json:"processDefinitionDescription"` ActivityId string `json:"activityId"` StartUserId string `json:"startUserId"` StartTime time.Time `json:"StartTime"` CallbackId string `json:"callbackId"` CallbackType string `json:"callbackType"` ReferenceId string `json:"referenceId"` ReferenceType string `json:"referenceType"` TenantId *string `json:"tenantId"` }
func (ExecutionEntity) GetCurrentActivityId ¶
func (execution ExecutionEntity) GetCurrentActivityId() string
func (ExecutionEntity) GetCurrentFlowElement ¶
func (execution ExecutionEntity) GetCurrentFlowElement() delegate.FlowElement
func (ExecutionEntity) GetDeploymentId ¶
func (execution ExecutionEntity) GetDeploymentId() string
func (*ExecutionEntity) GetExecutionId ¶
func (execution *ExecutionEntity) GetExecutionId() string
func (ExecutionEntity) GetProcessDefinitionId ¶
func (execution ExecutionEntity) GetProcessDefinitionId() string
func (ExecutionEntity) GetProcessInstanceId ¶
func (execution ExecutionEntity) GetProcessInstanceId() string
func (ExecutionEntity) GetProcessVariable ¶
func (execution ExecutionEntity) GetProcessVariable() map[string]interface{}
func (ExecutionEntity) GetSourceActivityExecution ¶
func (execution ExecutionEntity) GetSourceActivityExecution() ExecutionEntity
func (ExecutionEntity) GetSpecificVariable ¶
func (execution ExecutionEntity) GetSpecificVariable(variableName string) (Variable, error)
func (*ExecutionEntity) GetTenantId ¶
func (execution *ExecutionEntity) GetTenantId() *string
func (ExecutionEntity) GetVariable ¶
func (execution ExecutionEntity) GetVariable() map[string]interface{}
func (ExecutionEntity) HandleVariable ¶
func (execution ExecutionEntity) HandleVariable(variables []Variable) map[string]interface{}
func (*ExecutionEntity) SetBusinessKey ¶
func (execution *ExecutionEntity) SetBusinessKey(businessKey string)
func (*ExecutionEntity) SetCurrentActivityId ¶
func (execution *ExecutionEntity) SetCurrentActivityId(currentActivityId string)
func (*ExecutionEntity) SetCurrentFlowElement ¶
func (execution *ExecutionEntity) SetCurrentFlowElement(flow delegate.FlowElement)
func (*ExecutionEntity) SetDeploymentId ¶
func (execution *ExecutionEntity) SetDeploymentId(deploymentId string)
func (*ExecutionEntity) SetProcessDefinitionId ¶
func (execution *ExecutionEntity) SetProcessDefinitionId(processDefineId string)
func (*ExecutionEntity) SetProcessInstanceId ¶
func (execution *ExecutionEntity) SetProcessInstanceId(processInstanceId string)
type ExecutionEntityManager ¶
type ExecutionEntityManager struct { }
func GetExecutionEntityManager ¶
func GetExecutionEntityManager() *ExecutionEntityManager
func (ExecutionEntityManager) CreateExecution ¶
func (executionEntityManager ExecutionEntityManager) CreateExecution(executionEntity *ExecutionEntity) error
func (ExecutionEntityManager) DeleteExecution ¶
func (executionEntityManager ExecutionEntityManager) DeleteExecution(executionId string) error
func (ExecutionEntityManager) FindById ¶
func (executionEntityManager ExecutionEntityManager) FindById(executionId string) (ExecutionEntity, error)
func (ExecutionEntityManager) List ¶
func (executionEntityManager ExecutionEntityManager) List(listRequest execution.ListRequest) ([]ExecutionEntity, error)
func (ExecutionEntityManager) MigrateExecutionActID ¶
func (executionEntityManager ExecutionEntityManager) MigrateExecutionActID(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, newActivityId string) error
func (ExecutionEntityManager) MigrateExecutionProcDefID ¶
func (executionEntityManager ExecutionEntityManager) MigrateExecutionProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
func (ExecutionEntityManager) MigrateProcessInstanceBusinessStatus ¶
func (executionEntityManager ExecutionEntityManager) MigrateProcessInstanceBusinessStatus(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, newActivityId string) error
func (ExecutionEntityManager) MigrateProcessInstanceProcDefIdAndStartActId ¶
func (executionEntityManager ExecutionEntityManager) MigrateProcessInstanceProcDefIdAndStartActId(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
func (ExecutionEntityManager) RecordBusinessStatus ¶
func (executionEntityManager ExecutionEntityManager) RecordBusinessStatus(delegateExecution delegate.DelegateExecution) error
type HistoricActivityInstanceEntity ¶
type HistoricActivityInstanceEntity struct { AbstractEntity ActivityId string `json:"activityId"` ActivityName string `json:"activityName"` ActivityType string `json:"activityType"` ProcessDefinitionId string `json:"processDefinitionId"` ProcessInstanceId string `json:"processInstanceId"` ExecutionId string `json:"executionId"` TaskId string `json:"taskId"` CalledProcessInstanceId string `json:"calledProcessInstanceId"` Assignee string `json:"assignee"` StartTime time.Time `json:"startTime"` EndTime *time.Time `json:"endTime"` DurationInMillis int `json:"durationInMillis"` TenantId *string `json:"tenantId"` DeleteReason *string `json:"deleteReason"` BusinessResult *string `json:"businessResult"` BusinessParameter *string `json:"businessParameter"` }
type HistoricActivityInstanceEntityManager ¶
type HistoricActivityInstanceEntityManager struct {
DefaultHistoryManager
}
func GetHistoricActivityInstanceEntityManager ¶
func GetHistoricActivityInstanceEntityManager() *HistoricActivityInstanceEntityManager
func (HistoricActivityInstanceEntityManager) DeleteByExecutionId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) DeleteByExecutionId(entity delegate.DelegateExecution) error
func (HistoricActivityInstanceEntityManager) DeleteByProcessInstanceId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) DeleteByProcessInstanceId(processInstanceId, actId string) error
func (HistoricActivityInstanceEntityManager) List ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) List(listRequest historicactinst.ListRequest) ([]HistoricActivityInstanceEntity, error)
func (HistoricActivityInstanceEntityManager) MigrateAct ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) MigrateAct(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, newActivityId string, newName string, newType string) error
func (HistoricActivityInstanceEntityManager) MigrateProcDefID ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) MigrateProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
func (HistoricActivityInstanceEntityManager) RecordActEndByExecutionId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByExecutionId(element delegate.FlowElement, entity delegate.DelegateExecution, deleteReason *string) error
func (HistoricActivityInstanceEntityManager) RecordActEndByExecutionIdAndActId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByExecutionIdAndActId(executionId, activityId string, deleteReason *string) error
func (HistoricActivityInstanceEntityManager) RecordActEndByProcessInstanceId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActEndByProcessInstanceId(processInstanceId string, deleteReason *string) error
func (HistoricActivityInstanceEntityManager) RecordActivityStart ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordActivityStart(entity delegate.DelegateExecution) error
func (HistoricActivityInstanceEntityManager) RecordBusinessDataByExecutionId ¶ added in v0.0.3
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordBusinessDataByExecutionId(entity delegate.DelegateExecution, businessParameter, businessResult string) error
func (HistoricActivityInstanceEntityManager) RecordSequenceFlow ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordSequenceFlow(entity delegate.DelegateExecution) error
func (HistoricActivityInstanceEntityManager) RecordTaskId ¶
func (historicActivityInstanceEntityManager HistoricActivityInstanceEntityManager) RecordTaskId(task model.ActRuTask) error
type HistoricIdentityLinkEntityManager ¶
type HistoricIdentityLinkEntityManager struct { }
func GetHistoricIdentityLinkEntityManager ¶
func GetHistoricIdentityLinkEntityManager() *HistoricIdentityLinkEntityManager
func (HistoricIdentityLinkEntityManager) SelectByProcessInstanceId ¶
func (historicIdentityLinkEntityManager HistoricIdentityLinkEntityManager) SelectByProcessInstanceId(processInstanceId string) ([]*HistoricIdentityLinkEntity, error)
type HistoricProcessInstanceEntity ¶
type HistoricProcessInstanceEntity struct { AbstractEntity BusinessKey string `json:"businessKey"` BusinessStatus string `json:"businessStatus"` ProcessDefinitionId string `json:"processDefinitionId"` ProcessDefinitionUrl string `json:"processDefinitionUrl"` StartTime *time.Time `json:"StartTime"` EndTime *time.Time `json:"endTime"` DurationInMillis int `json:"durationInMillis"` StartUserId string `json:"startUserId"` StartActivityId string `json:"startActivityId"` EndActivityId string `json:"endActivityId"` DeleteReason string `json:"deleteReason"` SuperProcessInstanceId string `json:"superProcessInstanceId"` Url string `json:"url"` Variables []variable.Variable `json:"variable"` TenantId string `json:"tenantId"` ProcessDefinitionName string `json:"processDefinitionName"` }
func (HistoricProcessInstanceEntity) GetProcessDefinitionId ¶
func (historicProcessInstanceEntity HistoricProcessInstanceEntity) GetProcessDefinitionId() string
func (*HistoricProcessInstanceEntity) SetProcessDefinitionId ¶
func (historicProcessInstanceEntity *HistoricProcessInstanceEntity) SetProcessDefinitionId(processDefinitionId string)
type HistoricProcessInstanceEntityManager ¶
type HistoricProcessInstanceEntityManager struct { }
func GetHistoricProcessInstanceEntityManager ¶
func GetHistoricProcessInstanceEntityManager() *HistoricProcessInstanceEntityManager
func (HistoricProcessInstanceEntityManager) FindById ¶
func (historicProcessInstanceEntityManager HistoricProcessInstanceEntityManager) FindById(historicProcessInstanceId string) (HistoricProcessInstanceEntity, error)
func (HistoricProcessInstanceEntityManager) List ¶
func (historicProcessInstanceEntityManager HistoricProcessInstanceEntityManager) List(listRequest historicprocess.ListRequest) ([]HistoricProcessInstanceEntity, error)
type HistoricTaskInstanceEntity ¶
type HistoricTaskInstanceEntity struct { AbstractEntity ProcessDefinitionId string `json:"processDefinitionId"` ProcessDefinitionUrl string `json:"processDefinitionUrl"` ProcessInstanceId string `json:"processInstanceId"` ProcessInstanceUrl string `json:"processInstanceUrl"` ExecutionId string `json:"executionId"` Name string `json:"name"` Description string `json:"description"` DeleteReason string `json:"deleteReason"` Owner string `json:"owner"` Assignee string `json:"Assignee"` StartTime time.Time `json:"StartTime"` EndTime *time.Time `json:"endTime"` DurationInMillis int `json:"durationInMillis"` WorkTimeInMillis int `json:"workTimeInMillis"` ClaimTime *time.Time `json:"claimTime"` TaskDefinitionKey string `json:"taskDefinitionKey"` FormKey string `json:"formKey"` Priority int `json:"priority"` DueDate *time.Time `json:"dueDate"` ParentTaskId string `json:"parentTaskId"` Url string `json:"url"` Variables []variable.Variable `json:"variables"` TenantId string `json:"tenantId"` Category string `json:"category"` }
func (HistoricTaskInstanceEntity) SetAssignee ¶
func (historicTaskInstanceEntity HistoricTaskInstanceEntity) SetAssignee(assignee string)
type HistoricTaskInstanceEntityManager ¶
type HistoricTaskInstanceEntityManager struct {
DefaultHistoryManager
}
func GetHistoricTaskInstanceEntityManager ¶
func GetHistoricTaskInstanceEntityManager() *HistoricTaskInstanceEntityManager
func (HistoricTaskInstanceEntityManager) List ¶
func (historicTaskInstanceEntityManager HistoricTaskInstanceEntityManager) List(listRequest historictask.ListRequest) ([]HistoricTaskInstanceEntity, error)
func (HistoricTaskInstanceEntityManager) RecordTaskEnd ¶
func (historicTaskInstanceEntityManager HistoricTaskInstanceEntityManager) RecordTaskEnd(taskId string, deleteReason *string) error
type IdentityLinkEntity ¶
type IdentityLinkEntityManager ¶
type IdentityLinkEntityManager struct { }
func GetIdentityLinkManager ¶
func GetIdentityLinkManager() *IdentityLinkEntityManager
func (IdentityLinkEntityManager) CreateIdentityLink ¶
func (identityLinkEntityManager IdentityLinkEntityManager) CreateIdentityLink(identityLink model.ActRuIdentitylink) (err error)
func (IdentityLinkEntityManager) DeleteByProcessInstanceId ¶
func (identityLinkEntityManager IdentityLinkEntityManager) DeleteByProcessInstanceId(processInstanceId string) error
func (IdentityLinkEntityManager) DeleteIdentityLinksByTaskId ¶
func (identityLinkEntityManager IdentityLinkEntityManager) DeleteIdentityLinksByTaskId(taskId string) error
func (IdentityLinkEntityManager) SelectByProcessInstanceId ¶
func (identityLinkEntityManager IdentityLinkEntityManager) SelectByProcessInstanceId(processInstanceId string) ([]*IdentityLinkEntity, error)
type ProcessDefinitionEntity ¶
type ProcessDefinitionEntity struct { AbstractEntity Name string Description string Key string Version int Category string DeploymentId string ResourceName string ResourceContent []byte }
func (*ProcessDefinitionEntity) GetDeploymentId ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetDeploymentId() string
func (*ProcessDefinitionEntity) GetDescription ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetDescription() string
func (*ProcessDefinitionEntity) GetKey ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetKey() string
func (*ProcessDefinitionEntity) GetName ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetName() string
func (*ProcessDefinitionEntity) GetResourceName ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetResourceName() string
func (*ProcessDefinitionEntity) GetVersion ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) GetVersion() int
func (*ProcessDefinitionEntity) SetCategory ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetCategory(category string)
func (*ProcessDefinitionEntity) SetDeploymentId ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetDeploymentId(deploymentId string)
func (*ProcessDefinitionEntity) SetDescription ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetDescription(description string)
func (*ProcessDefinitionEntity) SetKey ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetKey(key string)
func (*ProcessDefinitionEntity) SetName ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetName(name string)
func (*ProcessDefinitionEntity) SetResourceName ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetResourceName(resourceName string)
func (*ProcessDefinitionEntity) SetVersion ¶
func (processDefinitionEntityImpl *ProcessDefinitionEntity) SetVersion(version int)
type ProcessDefinitionEntityManager ¶
type ProcessDefinitionEntityManager struct { }
func GetProcessDefinitionEntityManager ¶
func GetProcessDefinitionEntityManager() *ProcessDefinitionEntityManager
func (ProcessDefinitionEntityManager) FindByDeploymentId ¶
func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindByDeploymentId(deploymentId string) (ProcessDefinitionEntity, error)
func (ProcessDefinitionEntityManager) FindLatestProcessDefinitionByKey ¶
func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindLatestProcessDefinitionByKey(processDefinitionKey string) (ProcessDefinitionEntity, error)
func (ProcessDefinitionEntityManager) FindProcessDefinitionById ¶
func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindProcessDefinitionById(processDefinitionId string) (ProcessDefinitionEntity, error)
func (ProcessDefinitionEntityManager) FindResourceEntityByProcessDefinitionById ¶
func (processDefinitionEntityManager ProcessDefinitionEntityManager) FindResourceEntityByProcessDefinitionById(processDefinitionId string) (ResourceEntity, error)
func (ProcessDefinitionEntityManager) Insert ¶
func (processDefinitionEntityManager ProcessDefinitionEntityManager) Insert(processDefinition *model.ActReProcdef) (ProcessDefinitionEntity, error)
type ResourceEntity ¶
func (ResourceEntity) GetBytes ¶
func (resourceEntity ResourceEntity) GetBytes() []byte
func (*ResourceEntity) GetDeploymentId ¶
func (resourceEntity *ResourceEntity) GetDeploymentId() string
func (*ResourceEntity) GetName ¶
func (resourceEntity *ResourceEntity) GetName() string
func (*ResourceEntity) SetBytes ¶
func (resourceEntity *ResourceEntity) SetBytes(bytes []byte)
func (*ResourceEntity) SetDeploymentId ¶
func (resourceEntity *ResourceEntity) SetDeploymentId(deploymentId string)
func (*ResourceEntity) SetName ¶
func (resourceEntity *ResourceEntity) SetName(name string)
type ResourceEntityManager ¶
type ResourceEntityManager struct { }
func GetResourceEntityManager ¶
func GetResourceEntityManager() *ResourceEntityManager
func (ResourceEntityManager) FindResourceByDeploymentIdAndResourceName ¶
func (resourceEntityManager ResourceEntityManager) FindResourceByDeploymentIdAndResourceName(deploymentId, resourceName string) (ResourceEntity, error)
type TaskEntity ¶
type TaskEntity struct { AbstractEntity ExecutionEntity VariableScopeImpl Assignee *string StartTime time.Time TaskDefineName string ClaimTime *time.Time Variables map[string]interface{} Url string `json:"url"` Owner string `json:"owner"` DelegationState string `json:"delegationState"` Description string `json:"description"` DueDate *time.Time `json:"dueDate"` Priority int `json:"priority"` Suspended bool `json:"suspended"` TaskDefinitionKey string `json:"taskDefinitionKey"` ScopeDefinitionId string `json:"scopeDefinitionId"` ScopeId string `json:"scopeId"` SubScopeId string `json:"subScopeId"` ScopeType string `json:"scopeType"` PropagatedStageInstanceId string `json:"propagatedStageInstanceId"` TenantId *string `json:"tenantId"` Category string `json:"category"` FormKey *string `json:"formKey"` ParentTaskId string `json:"parentTaskId"` ParentTaskUrl string `json:"parentTaskUrl"` ExecutionId string `json:"executionId"` ExecutionUrl string `json:"executionUrl"` ProcessInstanceId string `json:"processInstanceId"` ProcessInstanceUrl string `json:"processInstanceUrl"` ProcessDefinitionId string `json:"processDefinitionId"` ProcessDefinitionUrl string `json:"processDefinitionUrl"` }
func NewTaskEntity ¶
func NewTaskEntity(execution delegate.DelegateExecution, userTask bpmn_model.UserTask) TaskEntity
func (*TaskEntity) GetAssignee ¶
func (taskEntiy *TaskEntity) GetAssignee() *string
func (*TaskEntity) GetClaimTime ¶
func (taskEntiy *TaskEntity) GetClaimTime() *time.Time
func (*TaskEntity) GetExecutionId ¶
func (taskEntiy *TaskEntity) GetExecutionId() string
func (TaskEntity) GetSpecificVariable ¶
func (taskEntiy TaskEntity) GetSpecificVariable(variableName string) (variable.Variable, error)
func (*TaskEntity) GetTaskDefineKey ¶
func (taskEntiy *TaskEntity) GetTaskDefineKey() string
func (TaskEntity) GetVariable ¶
func (taskEntiy TaskEntity) GetVariable() map[string]interface{}
func (*TaskEntity) SetAssignee ¶
func (taskEntiy *TaskEntity) SetAssignee(assignee *string)
func (*TaskEntity) SetClaimTime ¶
func (taskEntiy *TaskEntity) SetClaimTime(claimTime *time.Time)
func (*TaskEntity) SetExecutionId ¶
func (taskEntiy *TaskEntity) SetExecutionId(executionId string)
func (*TaskEntity) SetStartTime ¶
func (taskEntiy *TaskEntity) SetStartTime(startTime time.Time)
func (*TaskEntity) SetTaskDefineKey ¶
func (taskEntiy *TaskEntity) SetTaskDefineKey(taskDefineKey string)
func (*TaskEntity) SetTaskDefineName ¶
func (taskEntiy *TaskEntity) SetTaskDefineName(taskDefineName string)
type TaskEntityManager ¶
type TaskEntityManager struct { }
func GetTaskEntityManager ¶
func GetTaskEntityManager() *TaskEntityManager
func (TaskEntityManager) ChangeTaskAssignee ¶
func (taskEntityManager TaskEntityManager) ChangeTaskAssignee(taskEntity TaskEntity, userId *string) error
func (TaskEntityManager) DeleteTask ¶
func (taskEntityManager TaskEntityManager) DeleteTask(task TaskEntity, deleteReason *string) error
func (TaskEntityManager) FindById ¶
func (taskEntityManager TaskEntityManager) FindById(id string) (TaskEntity, error)
func (TaskEntityManager) FindByProcessInstanceId ¶
func (taskEntityManager TaskEntityManager) FindByProcessInstanceId(processInstanceId string) ([]TaskEntity, error)
func (TaskEntityManager) InsertTask ¶
func (taskEntityManager TaskEntityManager) InsertTask(taskEntity *TaskEntity) error
func (TaskEntityManager) List ¶
func (taskEntityManager TaskEntityManager) List(listRequest task.ListRequest) ([]TaskEntity, error)
func (TaskEntityManager) MigrateNameAndTaskDefKey ¶
func (taskEntityManager TaskEntityManager) MigrateNameAndTaskDefKey(processDefinitionEntity ProcessDefinitionEntity, oldActivityId string, newActivityId string, newName string) error
func (TaskEntityManager) MigrateProcDefID ¶
func (taskEntityManager TaskEntityManager) MigrateProcDefID(oldProcessDefinitionEntity, newProcessDefinitionEntity ProcessDefinitionEntity) error
type VariableEntity ¶
type VariableEntity struct { AbstractEntity Type string Delete bool }
func (VariableEntity) GetType ¶
func (variableEntity VariableEntity) GetType() string
func (VariableEntity) SetDeleted ¶
func (variableEntity VariableEntity) SetDeleted(b bool)
type VariableEntityManager ¶
type VariableEntityManager struct { }
func GetVariableEntityManager ¶
func GetVariableEntityManager() *VariableEntityManager
func (VariableEntityManager) DeleteByProcessInstanceId ¶
func (variableEntityManager VariableEntityManager) DeleteByProcessInstanceId(processInstanceId string) error
func (VariableEntityManager) DeleteVariableInstanceByTask ¶
func (variableEntityManager VariableEntityManager) DeleteVariableInstanceByTask(taskId string)
func (VariableEntityManager) UpsertHistoricVariable ¶
func (variableEntityManager VariableEntityManager) UpsertHistoricVariable(v variable.Variable) (err error)
func (VariableEntityManager) UpsertVariable ¶
func (variableEntityManager VariableEntityManager) UpsertVariable(v variable.Variable) error
type VariableScopeImpl ¶
type VariableScopeImpl struct { AbstractVariableScopeImpl ExecutionEntity ExecutionEntity }
func (VariableScopeImpl) GetVariableLocal ¶
func (variableScope VariableScopeImpl) GetVariableLocal() (variables map[string]interface{})
func (VariableScopeImpl) SetVariable ¶
func (variableScope VariableScopeImpl) SetVariable(execution delegate.DelegateExecution, variables map[string]interface{}) error
SetVariable 保存流程变量
func (VariableScopeImpl) SetVariableLocal ¶
func (variableScope VariableScopeImpl) SetVariableLocal(variables map[string]interface{}) error
Source Files ¶
- HistoricIdentityLinkEntity.go
- abstractEntity.go
- abstractVariableScopeImpl.go
- defaultHistoryManager.go
- deploymentEntity.go
- deploymentEntityManager.go
- entity.go
- entityManager.go
- executionEntity.go
- executionEntityManager.go
- historicActivityInstanceEntity.go
- historicActivityInstanceEntityManager.go
- historicIdentityLinkEntityManager.go
- historicProcessInstanceEntity.go
- historicProcessInstanceEntityManager.go
- historicTaskInstanceEntity.go
- historicTaskInstanceEntityManager.go
- identityLinkEntity.go
- identityLinkEntityManager.go
- processDefinitionEntity.go
- processDefinitionEntityManager.go
- resourceEntity.go
- resourceEntityManager.go
- taskEntity.go
- taskEntityManager.go
- variableEntity.go
- variableEntityManager.go
Click to show internal directories.
Click to hide internal directories.