Documentation ¶
Index ¶
- Constants
- func AddWorkflowVersionNodeLog(db *sqlx.DB, nodeId int, reference string, workflowVersionNodeId int, ...)
- func GetTriggerGoupChildNodes(db *sqlx.DB, workflowVersionNodeId int) (map[int]*WorkflowNode, map[int]WorkflowVersionNodeLink, error)
- func ProcessWorkflowNode(ctx context.Context, db *sqlx.DB, nodeSettings commons.ManagedNodeSettings, ...) (map[string]string, commons.Status, error)
- func RegisterWorkflowRoutes(r *gin.RouterGroup, db *sqlx.DB)
- type ChannelPolicyConfigurationParameters
- type CreateNodeRequest
- type CreateWorkflowVersionNodeLinkRequest
- type DeleteStageRequest
- type LinkVisibilitySettings
- type ModifyTagsParameters
- type ReBalanceParameters
- type TagAction
- type TagInfo
- type TagParameters
- type TimeTriggerParameters
- type UpdateNodeRequest
- type UpdateWorkflow
- type Workflow
- type WorkflowForest
- type WorkflowNode
- func GetActiveEventTriggerNodes(db *sqlx.DB, nodeType commons.WorkflowNodeType) ([]WorkflowNode, error)
- func GetActiveSortedStageTriggerNodeForWorkflowVersionId(db *sqlx.DB, workflowVersionId int) ([]WorkflowNode, error)
- func GetWorkflowNode(db *sqlx.DB, workflowVersionNodeId int) (WorkflowNode, error)
- type WorkflowNodeParameter
- type WorkflowNodeParameters
- type WorkflowNodeVisibilitySettings
- type WorkflowPage
- type WorkflowTableRow
- type WorkflowVersion
- type WorkflowVersionNode
- type WorkflowVersionNodeLink
- type WorkflowVersionNodeLinkVisibilitySettings
- type WorkflowVersionNodeLog
- type WorkflowVersionNodeResponse
Constants ¶
View Source
const ( TagActionAdd = TagAction(iota) TagActionRemove TagActionToggle )
Variables ¶
This section is empty.
Functions ¶
func GetTriggerGoupChildNodes ¶ added in v0.16.9
func GetTriggerGoupChildNodes(db *sqlx.DB, workflowVersionNodeId int) (map[int]*WorkflowNode, map[int]WorkflowVersionNodeLink, error)
func ProcessWorkflowNode ¶
func ProcessWorkflowNode(ctx context.Context, db *sqlx.DB, nodeSettings commons.ManagedNodeSettings, workflowNode WorkflowNode, triggeringWorkflowVersionNodeId int, workflowNodeCache map[int]WorkflowNode, workflowNodeStatus map[int]commons.Status, workflowNodeStagingParametersCache map[int]map[string]string, reference string, inputs map[string]string, iteration int) (map[string]string, commons.Status, error)
ProcessWorkflowNode workflowNodeStagingParametersCache[WorkflowVersionNodeId][inputLabel] (i.e. inputLabel = sourceChannelIds)
func RegisterWorkflowRoutes ¶
func RegisterWorkflowRoutes(r *gin.RouterGroup, db *sqlx.DB)
Types ¶
type CreateNodeRequest ¶
type CreateNodeRequest struct { WorkflowVersionId int `json:"workflowVersionId" db:"workflow_version_id"` Name string `json:"name" db:"name"` Type commons.WorkflowNodeType `json:"type" db:"type"` Stage int `json:"stage" db:"stage"` VisibilitySettings WorkflowNodeVisibilitySettings `json:"visibilitySettings" db:"visibility_settings"` Parameters interface{} `json:"parameters" db:"parameters"` }
type CreateWorkflowVersionNodeLinkRequest ¶
type CreateWorkflowVersionNodeLinkRequest struct { WorkflowVersionId int `json:"workflowVersionId" db:"workflow_version_id"` ParentOutputIndex int `json:"parentOutputIndex" db:"parent_output_index"` ParentWorkflowVersionNodeId int `json:"parentWorkflowVersionNodeId" db:"parent_workflow_version_node_id"` ChildInputIndex int `json:"childInputIndex" db:"child_input_index"` ChildWorkflowVersionNodeId int `json:"childWorkflowVersionNodeId" db:"child_workflow_version_node_id"` }
type DeleteStageRequest ¶
type LinkVisibilitySettings ¶
type ModifyTagsParameters ¶
type ReBalanceParameters ¶
type ReBalanceParameters struct { OutgoingChannelId *int `json:"outgoingChannelId"` IncomingChannelId *int `json:"incomingChannelId"` ChannelIds []int `json:"channelIds"` AmountMsat uint64 `json:"amountMsat"` MaximumCostMsat uint64 `json:"maximumCostMsat"` MaximumConcurrency *int `json:"maximumConcurrency"` }
type TagParameters ¶ added in v0.16.9
type TimeTriggerParameters ¶
type UpdateNodeRequest ¶
type UpdateNodeRequest struct { WorkflowVersionNodeId int `json:"workflowVersionNodeId" db:"workflow_version_node_id"` Name *string `json:"name" db:"name"` Status *commons.Status `json:"status" db:"status"` Parameters *interface{} `json:"parameters" db:"parameters"` VisibilitySettings *WorkflowNodeVisibilitySettings `json:"visibilitySettings" db:"visibility_settings"` }
type UpdateWorkflow ¶
type Workflow ¶
type WorkflowForest ¶
type WorkflowForest struct {
SortedStageTrees map[int][]*WorkflowNode `json:"sortedStageTrees"`
}
func GetWorkflowForest ¶
func GetWorkflowForest(db *sqlx.DB, workflowVersionId int) (WorkflowForest, error)
type WorkflowNode ¶
type WorkflowNode struct { WorkflowVersionNodeId int `json:"workflowVersionNodeId"` Name string `json:"name"` Status commons.Status `json:"status"` Type commons.WorkflowNodeType `json:"type"` Parameters interface{} `json:"parameters"` VisibilitySettings WorkflowNodeVisibilitySettings `json:"visibilitySettings"` UpdateOn time.Time `json:"updatedOn"` ParentNodes map[int]*WorkflowNode `json:"parentNodes"` ChildNodes map[int]*WorkflowNode `json:"childNodes"` LinkDetails map[int]WorkflowVersionNodeLink `json:"LinkDetails"` WorkflowVersionId int `json:"workflowVersionId"` }
func GetActiveEventTriggerNodes ¶
func GetActiveEventTriggerNodes(db *sqlx.DB, nodeType commons.WorkflowNodeType) ([]WorkflowNode, error)
func GetActiveSortedStageTriggerNodeForWorkflowVersionId ¶
func GetActiveSortedStageTriggerNodeForWorkflowVersionId(db *sqlx.DB, workflowVersionId int) ([]WorkflowNode, error)
func GetWorkflowNode ¶
func GetWorkflowNode(db *sqlx.DB, workflowVersionNodeId int) (WorkflowNode, error)
GetWorkflowNode is not recursive and only returns direct parent/child relations without further nesting.
type WorkflowNodeParameter ¶
type WorkflowNodeParameter struct { Type commons.WorkflowParameterType `json:"type"` ValueNumber int `json:"valueNumber"` ValueString string `json:"valueString"` }
func (*WorkflowNodeParameter) Scan ¶
func (wp *WorkflowNodeParameter) Scan(val interface{}) (err error)
type WorkflowNodeParameters ¶
type WorkflowNodeParameters struct {
Parameters []WorkflowNodeParameter `json:"parameters"`
}
func (*WorkflowNodeParameters) Scan ¶
func (nvp *WorkflowNodeParameters) Scan(val interface{}) (err error)
type WorkflowNodeVisibilitySettings ¶
type WorkflowNodeVisibilitySettings struct { YPosition *int `json:"yPosition" db:"yPosition"` XPosition *int `json:"xPosition" db:"xPosition"` Collapsed *bool `json:"collapsed" db:"collapsed"` }
func (*WorkflowNodeVisibilitySettings) Scan ¶
func (nvs *WorkflowNodeVisibilitySettings) Scan(val interface{}) (err error)
type WorkflowPage ¶
type WorkflowPage struct { Workflow Workflow `json:"workflow"` Version WorkflowVersion `json:"version"` Nodes []WorkflowVersionNode `json:"nodes"` Links []WorkflowVersionNodeLink `json:"links"` }
type WorkflowTableRow ¶
type WorkflowTableRow struct { WorkflowId int `json:"workflowId" db:"workflow_id"` WorkflowName string `json:"workflowName" db:"workflow_name"` WorkflowStatus int `json:"workflowStatus" db:"workflow_status"` LatestVersionName *string `json:"latestVersionName" db:"latest_version_name"` LatestVersion *int `json:"latestVersion" db:"latest_version"` LatestWorkflowVersionId *int `json:"latestWorkflowVersionId" db:"latest_workflow_version_id"` LatestVersionStatus *int `json:"latestVersionStatus" db:"latest_version_status"` ActiveVersionName *string `json:"activeVersionName" db:"active_version_name"` ActiveVersion *int `json:"activeVersion" db:"active_version"` ActiveWorkflowVersionId *int `json:"activeWorkflowVersionId" db:"active_workflow_version_id"` ActiveVersionStatus *int `json:"activeVersionStatus" db:"active_version_status"` }
func GetWorkflows ¶
func GetWorkflows(db *sqlx.DB) ([]WorkflowTableRow, error)
type WorkflowVersion ¶
type WorkflowVersion struct { WorkflowVersionId int `json:"workflowVersionId" db:"workflow_version_id"` Name string `json:"name" db:"name"` Version int `json:"version" db:"version"` Status commons.Status `json:"status" db:"status"` WorkflowId int `json:"workflowId" db:"workflow_id"` CreatedOn time.Time `json:"createdOn" db:"created_on"` UpdateOn time.Time `json:"updatedOn" db:"updated_on"` }
func GetWorkflowVersion ¶
func GetWorkflowVersions ¶
func GetWorkflowVersions(db *sqlx.DB, workflowId int) ([]WorkflowVersion, error)
type WorkflowVersionNode ¶
type WorkflowVersionNode struct { WorkflowId int `json:"workflowId" db:"workflow_id"` Version int `json:"version" db:"version"` WorkflowVersionId int `json:"workflowVersionId" db:"workflow_version_id"` WorkflowVersionNodeId int `json:"workflowVersionNodeId" db:"workflow_version_node_id"` Name string `json:"name" db:"name"` Stage int `json:"stage" db:"stage"` Status commons.Status `json:"status" db:"status"` Type commons.WorkflowNodeType `json:"type" db:"type"` Parameters interface{} `json:"parameters" db:"parameters"` VisibilitySettings WorkflowNodeVisibilitySettings `json:"visibilitySettings" db:"visibility_settings"` CreatedOn time.Time `json:"createdOn" db:"created_on"` UpdateOn time.Time `json:"updatedOn" db:"updated_on"` }
func GetWorkflowNodes ¶
func GetWorkflowVersionNode ¶
func GetWorkflowVersionNode(db *sqlx.DB, workflowVersionNodeId int) (WorkflowVersionNode, error)
func (WorkflowVersionNode) GetWorkflowNodeStructured ¶
func (wfn WorkflowVersionNode) GetWorkflowNodeStructured() WorkflowNode
type WorkflowVersionNodeLink ¶
type WorkflowVersionNodeLink struct { WorkflowVersionNodeLinkId int `json:"workflowVersionNodeLinkId" db:"workflow_version_node_link_id"` Name string `json:"name" db:"name"` VisibilitySettings WorkflowVersionNodeLinkVisibilitySettings `json:"visibilitySettings" db:"visibility_settings"` ParentOutputIndex int `json:"parentOutputIndex" db:"parent_output_index"` ParentWorkflowVersionNodeId int `json:"parentWorkflowVersionNodeId" db:"parent_workflow_version_node_id"` ChildInputIndex int `json:"childInputIndex" db:"child_input_index"` ChildWorkflowVersionNodeId int `json:"childWorkflowVersionNodeId" db:"child_workflow_version_node_id"` WorkflowVersionId int `json:"workflowVersionId" db:"workflow_version_id"` CreatedOn time.Time `json:"createdOn" db:"created_on"` UpdateOn time.Time `json:"updatedOn" db:"updated_on"` Stage int `json:"stage" db:"stage"` }
func GetWorkflowVersionNodeLinks ¶
func GetWorkflowVersionNodeLinks(db *sqlx.DB, workflowVersionId int) ([]WorkflowVersionNodeLink, error)
type WorkflowVersionNodeLinkVisibilitySettings ¶
type WorkflowVersionNodeLinkVisibilitySettings struct { Child LinkVisibilitySettings `json:"child"` Parent LinkVisibilitySettings `json:"parent"` }
func (*WorkflowVersionNodeLinkVisibilitySettings) Scan ¶
func (nvls *WorkflowVersionNodeLinkVisibilitySettings) Scan(val interface{}) (err error)
type WorkflowVersionNodeLog ¶
type WorkflowVersionNodeLog struct { NodeId int `json:"nodeId" db:"node_id"` TriggerReference string `json:"triggerReference" db:"trigger_reference"` InputData string `json:"input_data" db:"input_data"` OutputData string `json:"output_data" db:"output_data"` DebugData string `json:"debug_data" db:"debug_data"` ErrorData string `json:"error_data" db:"error_data"` WorkflowVersionNodeId int `json:"workflowVersionNodeId" db:"workflow_version_node_id"` TriggeringWorkflowVersionNodeId *int `json:"triggeringWorkflowVersionNodeId" db:"triggering_workflow_version_node_id"` CreatedOn time.Time `json:"createdOn" db:"created_on"` }
func GetNodeLogs ¶
func GetWorkflowLogs ¶
type WorkflowVersionNodeResponse ¶
type WorkflowVersionNodeResponse struct { WorkflowVersionNode Parameters []byte }
Click to show internal directories.
Click to hide internal directories.