node

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProcessEndSend 流程结束后发送
	ProcessEndSend = 1
	// ProcessNowSend 当前节点通过直接发送
	ProcessNowSend = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomationNotification

type AutomationNotification struct {
	// contains filtered or unexported fields
}

func NewAutomationNotification

func NewAutomationNotification(taskSvc task.Service, userSvc user.Service, integrations []method.NotifyIntegration) (*AutomationNotification, error)

func (*AutomationNotification) IsNotification

func (n *AutomationNotification) IsNotification(ctx context.Context, wf workflow.Workflow, instanceId int,
	nodeId string) (bool, map[string]interface{}, error)

func (*AutomationNotification) Send

type MyNotifications

type MyNotifications struct {
	// contains filtered or unexported fields
}

type UserNotification

type UserNotification struct {
	// contains filtered or unexported fields
}

func NewUserNotification

func NewUserNotification(engineSvc engineSvc.Service, templateSvc templateSvc.Service, orderSvc order.Service,
	userSvc user.Service, taskSvc task.Service, integrations []method.NotifyIntegration) (*UserNotification, error)

func (*UserNotification) IsNotification

func (n *UserNotification) IsNotification(ctx context.Context, wf workflow.Workflow, instanceId int,
	nodeId string) (bool, map[string]interface{}, error)

func (*UserNotification) Send

func (n *UserNotification) Send(ctx context.Context, nOrder order.Order, params notification.NotifyParams) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL