eventmanager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CinderellaEntityEvent

type CinderellaEntityEvent interface {
	CinderellaEvent
	GetEntity() interface{}
}

func CreateEntityEvent

func CreateEntityEvent(eventType CinderellaEventType, entity interface{}) CinderellaEntityEvent

type CinderellaEntityEventImpl

type CinderellaEntityEventImpl struct {
	CinderellaEntityEvent
	CinderellaEventImpl
	Entity interface{}
}

func (CinderellaEntityEventImpl) GetType

type CinderellaEvent

type CinderellaEvent interface {
	GetType() CinderellaEventType
}

type CinderellaEventBuilder

type CinderellaEventBuilder struct {
}

type CinderellaEventDispatcher

type CinderellaEventDispatcher struct {
	EventListeners []CinderellaEventListener
}

func GetEventDispatcher

func GetEventDispatcher() *CinderellaEventDispatcher

func (*CinderellaEventDispatcher) AddEventListener

func (eventDispatcher *CinderellaEventDispatcher) AddEventListener(listenerToAdd CinderellaEventListener) (err error)

func (*CinderellaEventDispatcher) DispatchEvent

func (eventDispatcher *CinderellaEventDispatcher) DispatchEvent(event CinderellaEvent) (err error)

type CinderellaEventImpl

type CinderellaEventImpl struct {
	EventType           CinderellaEventType
	ExecutionId         string
	ProcessInstanceId   string
	ProcessDefinitionId string
}

func (CinderellaEventImpl) GetProcessDefinitionId

func (activitiEvent CinderellaEventImpl) GetProcessDefinitionId() string

func (CinderellaEventImpl) GetProcessInstanceId

func (activitiEvent CinderellaEventImpl) GetProcessInstanceId() string

func (CinderellaEventImpl) GetType

func (activitiEvent CinderellaEventImpl) GetType() CinderellaEventType

func (CinderellaEventImpl) SetProcessDefinitionId

func (activitiEvent CinderellaEventImpl) SetProcessDefinitionId(processDefinitionId string)

func (CinderellaEventImpl) SetProcessInstanceId

func (activitiEvent CinderellaEventImpl) SetProcessInstanceId(processInstanceId string)

func (CinderellaEventImpl) SetType

func (activitiEvent CinderellaEventImpl) SetType(eventType CinderellaEventType)

type CinderellaEventListener

type CinderellaEventListener interface {
	OnEvent(event CinderellaEvent) error
}

type CinderellaEventType

type CinderellaEventType string
const (
	TASK_CREATED CinderellaEventType = "TASK_CREATED"

	TASK_ASSIGNED CinderellaEventType = "TASK_ASSIGNED"

	TASK_COMPLETED CinderellaEventType = "TASK_COMPLETED"
)

Jump to

Keyboard shortcuts

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