Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryParam ¶
type Workflow ¶
type Workflow struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` WorkflowName string `json:"workflow_name" gorm:"column:workflow_name;type:varchar;size:1024"` Definition string `json:"definition" gorm:"column:definition;type:text;"` Status int `json:"status" gorm:"column:status;type:int"` Version string `json:"version" gorm:"column:version;type:varchar;size:64"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` TotalInstances int `json:"total_instances" gorm:"-"` TotalRunningInstances int `json:"total_running_instances" gorm:"-"` TotalFailedInstances int `json:"total_failed_instances" gorm:"-"` }
Workflow workflow model definition
type WorkflowInstance ¶
type WorkflowInstance struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` WorkflowInstanceID string `json:"workflow_instance_id" gorm:"column:workflow_instance_id;type:varchar;size:1024"` WorkflowStatus int `json:"workflow_status" gorm:"column:workflow_status;type:int"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` }
func (WorkflowInstance) TableName ¶
func (w WorkflowInstance) TableName() string
type WorkflowTask ¶
type WorkflowTask struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` TaskID string `json:"task_id" gorm:"column:task_id;type:varchar;size:1024"` TaskName string `json:"task_name" gorm:"column:task_name;type:varchar;size:1024"` TaskType string `json:"task_type" gorm:"column:task_type;type:varchar;size:64"` TaskInputFilter string `json:"task_input_filter" gorm:"column:task_input_filter;type:varchar;size:1024"` Status int `json:"status" gorm:"column:status;type:int"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` Actions []*WorkflowTaskAction `json:"-" gorm:"-"` TaskIDs []string `json:"-" gorm:"-"` WorkflowInstanceID string `json:"workflow_instance_id" gorm:"-"` ChildTasks []*WorkflowTaskRelation `json:"-" gorm:"-"` }
func (WorkflowTask) TableName ¶
func (w WorkflowTask) TableName() string
type WorkflowTaskAction ¶
type WorkflowTaskAction struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` TaskID string `json:"task_id" gorm:"column:task_id;type:varchar;size:1024"` OperationName string `json:"operation_name" gorm:"column:operation_name;type:varchar;size:1024"` OperationType string `json:"operation_type" gorm:"column:operation_type;type:varchar;size:1024"` Status int `json:"status" gorm:"column:status;type:int"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"Update_time"` TaskIDs []string `json:"-" gorm:"-"` }
func (WorkflowTaskAction) TableName ¶
func (w WorkflowTaskAction) TableName() string
type WorkflowTaskInstance ¶
type WorkflowTaskInstance struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowInstanceID string `json:"workflow_instance_id" gorm:"column:workflow_instance_id;type:varchar;size:1024"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` TaskID string `json:"task_id" gorm:"column:task_id;type:varchar;size:1024"` TaskInstanceID string `json:"task_instance_id" gorm:"column:task_instance_id;type:varchar;size:1024"` Status int `json:"status" gorm:"column:status;type:int"` Input string `json:"input" gorm:"column:input;type:text;"` RetryTimes int `json:"retry_times" gorm:"column:retry_times;type:int"` CreateTime time.Time `json:"create_time" gorm:"column:create_time"` UpdateTime time.Time `json:"update_time" gorm:"column:update_time"` Task *WorkflowTask `json:"task" gorm:"-"` Order string `json:"order" gorm:"-"` IsStart bool `json:"is_start" gorm:"-"` }
func (WorkflowTaskInstance) TableName ¶
func (w WorkflowTaskInstance) TableName() string
type WorkflowTaskRelation ¶
type WorkflowTaskRelation struct { ID int `json:"id" gorm:"column:id;type:int;primaryKey;autoIncrement"` WorkflowID string `json:"workflow_id" gorm:"column:workflow_id;type:varchar;size:1024"` FromTaskID string `json:"from_task_id" gorm:"column:from_task_id;type:varchar;size:1024"` ToTaskID string `json:"to_task_id" gorm:"column:to_task_id;type:varchar;size:1024"` // DSL transition task id Condition string `json:"condition" gorm:"column:condition;type:varchar;size:2048"` // DSL transition condition Status int `json:"status" gorm:"column:status;type:int"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` }
func (WorkflowTaskRelation) TableName ¶
func (w WorkflowTaskRelation) TableName() string
Click to show internal directories.
Click to hide internal directories.