cmd

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: 31 Imported by: 0

Documentation

Index

Constants

View Source
const MODEL_FORM_SEPARATOR = "."

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignTaskCmd

type AssignTaskCmd struct {
	taskcmd.NeedsActiveTaskCmd
	UserId *string
}

func NewAssignTaskCmd

func NewAssignTaskCmd(ctx context.Context, taskId string, userId *string, options ...taskcmd.Options) AssignTaskCmd

func (AssignTaskCmd) Context

func (assignTaskCmd AssignTaskCmd) Context() context.Context

func (AssignTaskCmd) TaskExecute

func (assignTaskCmd AssignTaskCmd) TaskExecute(commandContext engine.Context, taskEntity entitymanager.TaskEntity) (interface{}, error)

type ClaimTaskCmd

type ClaimTaskCmd struct {
	taskcmd.NeedsActiveTaskCmd
	UserId *string
}

func (ClaimTaskCmd) Context

func (claimTaskCmd ClaimTaskCmd) Context() context.Context

func (ClaimTaskCmd) TaskExecute

func (claimTaskCmd ClaimTaskCmd) TaskExecute(commandContext engine.Context, taskEntity entitymanager.TaskEntity) (interface{}, error)

type CompleteCmd

type CompleteCmd struct {
	taskcmd.NeedsActiveTaskCmd
	Variables   map[string]interface{}
	UserId      *string
	CurrentTask delegate.FlowElement
}

func NewCompleteCmd

func NewCompleteCmd(ctx context.Context, taskId string, formData map[string]any, userId *string, options ...taskcmd.Options) CompleteCmd

func (CompleteCmd) TaskExecute

func (completeCmd CompleteCmd) TaskExecute(commandContext engine.Context, entity entitymanager.TaskEntity) (interface{}, error)

type DeploymentCmd

type DeploymentCmd struct {
	Name          string
	Key           string
	TenantId      string
	Bytes         []byte
	Ctx           context.Context
	Transactional bool
}

func (DeploymentCmd) Context

func (receiver DeploymentCmd) Context() context.Context

func (DeploymentCmd) Execute

func (receiver DeploymentCmd) Execute(ctx engine.Context) (interface{}, error)

func (DeploymentCmd) IsTransactional

func (receiver DeploymentCmd) IsTransactional() bool

type DiffActivity

type DiffActivity struct {
	ActivityId    string
	ActivityName  string
	NewActivityId string
}

type EvaluateConditionalEventsCmd

type EvaluateConditionalEventsCmd struct {
	executioncmd.NeedsActiveExecutionCmd
	ProcessVariables map[string]any
}

func NewEvaluateConditionalEventsCmd

func NewEvaluateConditionalEventsCmd(executionId string, options ...executioncmd.Options) EvaluateConditionalEventsCmd

func (EvaluateConditionalEventsCmd) InternalExecute

func (evaluateConditionalEventsCmd EvaluateConditionalEventsCmd) InternalExecute(CommandContext engine.Context, executionEntity delegate.DelegateExecution) (interface{}, error)

type EvaluateConditionalEventsCmdOptions

type EvaluateConditionalEventsCmdOptions func(*EvaluateConditionalEventsCmd)

func WithProcessVariables

func WithProcessVariables(processVariables map[string]any) EvaluateConditionalEventsCmdOptions

type GetCurrentTasksByUserCmd

type GetCurrentTasksByUserCmd struct {
	Ctx               context.Context
	ProcessInstanceId string
	UserId            *string
	Groups            []string
	Transactional     bool
}

func (GetCurrentTasksByUserCmd) Context

func (GetCurrentTasksByUserCmd) Execute

func (g GetCurrentTasksByUserCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetCurrentTasksByUserCmd) IsTransactional

func (g GetCurrentTasksByUserCmd) IsTransactional() bool

type GetDeploymentResourceCmd

type GetDeploymentResourceCmd struct {
	DeploymentId        string
	ProcessDefinitionId string
	ResourceName        string
	Ctx                 context.Context
	Transactional       bool
}

func (GetDeploymentResourceCmd) Context

func (getDeploymentResourceCmd GetDeploymentResourceCmd) Context() context.Context

func (GetDeploymentResourceCmd) Execute

func (getDeploymentResourceCmd GetDeploymentResourceCmd) Execute(ctx engine.Context) (interface{}, error)

func (GetDeploymentResourceCmd) IsTransactional

func (getDeploymentResourceCmd GetDeploymentResourceCmd) IsTransactional() bool

type GetIdentityLinksForProcessInstanceCmd

type GetIdentityLinksForProcessInstanceCmd struct {
	ProcessInstanceId string
	Ctx               context.Context
	Transactional     bool
}

func (GetIdentityLinksForProcessInstanceCmd) Context

func (GetIdentityLinksForProcessInstanceCmd) Execute

func (g GetIdentityLinksForProcessInstanceCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetIdentityLinksForProcessInstanceCmd) IsTransactional

func (g GetIdentityLinksForProcessInstanceCmd) IsTransactional() bool

type GetNextFormButtonsCmd

type GetNextFormButtonsCmd struct {
	Ctx                 context.Context
	ProcessDefinitionId string
	TaskDefinitionKey   string
	Transactional       bool
}

func (GetNextFormButtonsCmd) Context

func (GetNextFormButtonsCmd) Execute

func (g GetNextFormButtonsCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetNextFormButtonsCmd) IsTransactional

func (g GetNextFormButtonsCmd) IsTransactional() bool

type GetProcessDefinitionCmd

type GetProcessDefinitionCmd struct {
	ProcessDefinitionId string
	Ctx                 context.Context
	Transactional       bool
}

func (GetProcessDefinitionCmd) Context

func (getProcessDefinitionCmd GetProcessDefinitionCmd) Context() context.Context

func (GetProcessDefinitionCmd) Execute

func (getProcessDefinitionCmd GetProcessDefinitionCmd) Execute(ctx engine.Context) (interface{}, error)

func (GetProcessDefinitionCmd) IsTransactional

func (getProcessDefinitionCmd GetProcessDefinitionCmd) IsTransactional() bool

type GetProcessStatusCmd

type GetProcessStatusCmd struct {
	Ctx               context.Context
	ProcessInstanceId string
	Transactional     bool
}

func (GetProcessStatusCmd) Context

func (g GetProcessStatusCmd) Context() context.Context

func (GetProcessStatusCmd) Execute

func (g GetProcessStatusCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetProcessStatusCmd) IsTransactional

func (g GetProcessStatusCmd) IsTransactional() bool

type GetProcessViewCmd

type GetProcessViewCmd struct {
	Ctx               context.Context
	ProcessInstanceId string
	Transactional     bool
}

func (GetProcessViewCmd) Context

func (g GetProcessViewCmd) Context() context.Context

func (GetProcessViewCmd) Execute

func (g GetProcessViewCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetProcessViewCmd) IsTransactional

func (g GetProcessViewCmd) IsTransactional() bool

type GetRecallableActivitiesCmd

type GetRecallableActivitiesCmd struct {
	ProcessInstanceId string
	UserId            *string
	Groups            []string
	Ctx               context.Context
	Transactional     bool
}

func (GetRecallableActivitiesCmd) Context

func (GetRecallableActivitiesCmd) Execute

func (g GetRecallableActivitiesCmd) Execute(commandContext engine.Context) (interface{}, error)

func (GetRecallableActivitiesCmd) IsTransactional

func (g GetRecallableActivitiesCmd) IsTransactional() bool

type GetTaskCmd

type GetTaskCmd struct {
	UserId        string
	GroupId       string
	Ctx           context.Context
	Transactional bool
}

func (GetTaskCmd) Context

func (getTaskCmd GetTaskCmd) Context() context.Context

func (GetTaskCmd) Execute

func (getTaskCmd GetTaskCmd) Execute(ctx engine.Context) (interface{}, error)

func (GetTaskCmd) IsTransactional

func (getTaskCmd GetTaskCmd) IsTransactional() bool

type MoveActivityCmd

type MoveActivityCmd struct {
	Ctx               context.Context
	TargetActivityId  string
	Variables         map[string]interface{}
	UserId            string
	ProcessInstanceId string
	Transactional     bool
}

func (MoveActivityCmd) Context

func (moveActivityCmd MoveActivityCmd) Context() context.Context

func (MoveActivityCmd) Execute

func (moveActivityCmd MoveActivityCmd) Execute(commandContext engine.Context) (result interface{}, err error)

func (MoveActivityCmd) IsTransactional

func (moveActivityCmd MoveActivityCmd) IsTransactional() bool

type ProcessMigrateCmd

type ProcessMigrateCmd struct {
	Transactional bool
	Ctx           context.Context

	OldDeploymentId string
	NewDeploymentId string

	DiffActivities []DiffActivity
}

func (ProcessMigrateCmd) Context

func (g ProcessMigrateCmd) Context() context.Context

func (ProcessMigrateCmd) Execute

func (g ProcessMigrateCmd) Execute(commandContext engine.Context) (interface{}, error)

func (ProcessMigrateCmd) IsTransactional

func (g ProcessMigrateCmd) IsTransactional() bool

type ProcessViewDTO

type ProcessViewDTO struct {
	HighLightedFlows     []string
	ActiveActivityIds    []string
	HisActiveActivityIds []string
	ModelXml             string
	ModelName            string
}

type SelectOption

type SelectOption struct {
	Label string
	Value string
}

type SelectOptions

type SelectOptions struct {
	Options []*SelectOption
}

type StartProcessInstanceByKeyCmd

type StartProcessInstanceByKeyCmd struct {
	ProcessDefinitionKey string
	Variables            map[string]interface{}
	BusinessKey          string
	TenantId             string
	UserId               string
	Ctx                  context.Context
	Transactional        bool
}

func (StartProcessInstanceByKeyCmd) Context

func (startProcessInstanceByKeyCmd StartProcessInstanceByKeyCmd) Context() context.Context

func (StartProcessInstanceByKeyCmd) Execute

func (startProcessInstanceByKeyCmd StartProcessInstanceByKeyCmd) Execute(ctx engine.Context) (interface{}, error)

func (StartProcessInstanceByKeyCmd) IsTransactional

func (startProcessInstanceByKeyCmd StartProcessInstanceByKeyCmd) IsTransactional() bool

func (StartProcessInstanceByKeyCmd) Start

func (startProcessInstanceByKeyCmd StartProcessInstanceByKeyCmd) Start(ctx engine.Context) (entitymanager.ExecutionEntity, error)

type UserTaskFormButton

type UserTaskFormButton struct {
	ActionValue     *string
	ActionName      *string
	CandidateGroups []string
	OpenConfirm     *bool
	OpenForm        *bool
	FormKey         *string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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