Documentation ¶
Index ¶
Constants ¶
View Source
const ( WorkflowStateAll = "WORKFLOW.%s.State.>" // WorkflowStateAll is the wildcard subject for catching all state messages. WorkFlowJobCompleteAll = "WORKFLOW.%s.State.Job.Complete.*" // WorkFlowJobCompleteAll is the wildcard state message subject for all job completion messages. WorkFlowJobAbortAll = "WORKFLOW.%s.State.Job.Abort.*" // WorkFlowJobAbortAll is the wildcard state message subject for all job abort messages. WorkflowJobServiceTaskExecute = "WORKFLOW.%s.State.Job.Execute.ServiceTask" // WorkflowJobServiceTaskExecute is the raw state message subject for executing a service task. An identifier is added to the end to route messages to the clients. WorkflowJobServiceTaskExecuteWild = "WORKFLOW.%s.State.Job.Execute.ServiceTask.>" // WorkflowJobServiceTaskExecuteWild is the wildcard state message subject for all execute service task messages. WorkflowJobServiceTaskComplete = "WORKFLOW.%s.State.Job.Complete.ServiceTask" // WorkflowJobServiceTaskComplete is the state message subject for a completed service task, WorkflowJobServiceTaskAbort = "WORKFLOW.%s.State.Job.Abort.ServiceTask" // WorkflowJobServiceTaskAbort is the state message subject for aborting an in progress service task. WorkflowJobUserTaskExecute = "WORKFLOW.%s.State.Job.Execute.UserTask" // WorkflowJobUserTaskExecute is the state message subject for executing a user task. WorkflowJobUserTaskComplete = "WORKFLOW.%s.State.Job.Complete.UserTask" // WorkflowJobUserTaskComplete is the state message subject for completing a user task. WorkflowJobUserTaskAbort = "WORKFLOW.%s.State.Job.Abort.UserTask" // WorkflowJobUserTaskAbort is the state message subject for aborting a user task. WorkflowJobManualTaskExecute = "WORKFLOW.%s.State.Job.Execute.ManualTask" // WorkflowJobManualTaskExecute is the state message subject for executing a manual task. WorkflowJobManualTaskComplete = "WORKFLOW.%s.State.Job.Complete.ManualTask" // WorkflowJobManualTaskComplete is the state message subject for completing a manual task. WorkflowJobManualTaskAbort = "WORKFLOW.%s.State.Job.Abort.ManualTask" // WorkflowJobManualTaskAbort is the state message subject for sborting a manual task. WorkflowJobSendMessageExecute = "WORKFLOW.%s.State.Job.Execute.SendMessage" // WorkflowJobSendMessageExecute is the state message subject for executing a send workfloe message task. WorkflowJobSendMessageExecuteWild = "WORKFLOW.%s.State.Job.Execute.SendMessage.>" // WorkflowJobSendMessageExecuteWild is the wildcard state message subject for executing a send workfloe message task. WorkflowJobSendMessageComplete = "WORKFLOW.%s.State.Job.Complete.SendMessage" // WorkflowJobSendMessageComplete is the state message subject for completing a send message task. WorkflowJobTimerTaskExecute = "WORKFLOW.%s.State.Job.Execute.Timer" // WorkflowJobTimerTaskExecute is the state message subject for executing a timed task. WorkflowJobTimerTaskComplete = "WORKFLOW.%s.State.Job.Complete.Timer" // WorkflowJobTimerTaskComplete is the state message subject for completing a timed task. WorkflowJobLaunchExecute = "WORKFLOW.%s.State.Job.Execute.Launch" // WorkflowJobLaunchExecute is the state message subject for executing a launch subworkflow task. WorkflowJobLaunchComplete = "WORKFLOW.%s.State.Job.Complete.Launch" // WorkflowJobLaunchComplete is the state message subject for completing a launch subworkflow task. WorkflowInstanceExecute = "WORKFLOW.%s.State.Workflow.Execute" // WorkflowInstanceExecute is the state message subject for executing a workflow instance. WorkflowInstanceComplete = "WORKFLOW.%s.State.Workflow.Complete" // WorkflowInstanceComplete is the state message subject for completing a workfloe instance. WorkflowInstanceTerminated = "WORKFLOW.%s.State.Workflow.Terminated" // WorkflowInstanceTerminated is the state message subject for a workflow instance terminating. WorkflowInstanceAbort = "WORKFLOW.%s.State.Workflow.Abort" // WorkflowInstanceAbort is the state message subject for a workflow instace being aborted. WorkflowInstanceAll = "WORKFLOW.%s.State.Workflow.>" // WorkflowInstanceAll is the wildcard state message subject for all workflow state messages. WorkflowActivityExecute = "WORKFLOW.%s.State.Activity.Execute" // WorkflowActivityExecute is the state message subject for executing an activity. WorkflowActivityComplete = "WORKFLOW.%s.State.Activity.Complete" // WorkflowActivityComplete is the state message subject for completing an activity. WorkflowActivityAbort = "WORKFLOW.%s.State.Activity.Abort" // WorkflowActivityAbort is the state message subject for aborting an activity. WorkflowGeneralAbortAll = "WORKFLOW.%s.State.*.Abort" // WorkflowGeneralAbortAll is the wildcard state message subject for all abort messages/. WorkflowActivityAll = "WORKFLOW.%s.State.Activity.>" // WorkflowActivityAll is the wildcard state message subject for all activity messages. WorkflowTraversalExecute = "WORKFLOW.%s.State.Traversal.Execute" // WorkflowTraversalExecute is the state message subject for executing a new traversal. WorkflowTraversalComplete = "WORKFLOW.%s.State.Traversal.Complete" // WorkflowTraversalComplete is the state message subject for completing a traversal. WorkflowTimedExecute = "WORKFLOW.%s.Timers.WorkflowExecute" // WorkflowTimedExecute is the state message subject for timed workflow execute operation. WorkflowElementTimedExecute = "WORKFLOW.%s.Timers.ElementExecute" // WorkflowElementTimedExecute is the state message subject for a timed element execute operation. WorkflowLog = "WORKFLOW.%s.State.Log" // WorkflowLog is the state message subject for logging messages to a workflow activity. WorkflowLogAll = "WORKFLOW.%s.State.Log.*" // WorkflowLogAll is the wildcard state message subject for all logging messages. WorkflowMessages = "WORKFLOW.%s.Message.>" // WorkflowMessages is the wildcard state message subject for all workflow messages. WorkflowCommands = "WORKFLOW.%s.Command.>" // WorkflowCommands is the wildcard state message subject for all workflow commands. )
View Source
const ( APIAll = "Workflow.Api.*" // APIAll is all API message subjects. APIStoreWorkflow = "WORKFLOW.Api.StoreWorkflow" // APIStoreWorkflow is the store Workflow API subject. APILaunchWorkflow = "WORKFLOW.Api.LaunchWorkflow" // APILaunchWorkflow is the launch workflow API subject. APIListWorkflows = "WORKFLOW.Api.ListWorkflows" // APIListWorkflows is the list workflows API subject. APIListWorkflowInstance = "WORKFLOW.Api.ListWorkflowInstance" // APIListWorkflowInstance is the list workflow instances API subject. APIGetWorkflowStatus = "WORKFLOW.Api.GetWorkflowInstanceStatus" // APIGetWorkflowStatus is the get status of a running workflow instance API subject. APICancelWorkflowInstance = "WORKFLOW.Api.CancelWorkflowInstance" // APICancelWorkflowInstance is the cancel a workflow instance API subject. APISendMessage = "WORKFLOW.Api.SendMessage" // APISendMessage is the send workflow message API subject. APICompleteManualTask = "WORKFLOW.Api.CompleteManualTask" // APICompleteManualTask is the complete manual task API subject. APICompleteServiceTask = "WORKFLOW.Api.CompleteServiceTask" // APICompleteServiceTask is the complete service task API subject. APICompleteUserTask = "WORKFLOW.Api.CompleteUserTask" // APICompleteUserTask is the omplete user task API subject. APICompleteSendMessageTask = "WORKFLOW.Api.CompleteSendMessageTask" // APICompleteSendMessageTask is the complete send message task API subject. APIListUserTaskIDs = "WORKFLOW.Api.ListUserTaskIDs" // APIListUserTaskIDs is the list user task IDs API subject. APIGetUserTask = "WORKFLOW.Api.GetUserTask" // APIGetUserTask is the get user task API subject. APIHandleWorkflowError = "WORKFLOW.Api.HandleWorkflowError" // APIHandleWorkflowError is the handle workflow error API subject. APIGetServerInstanceStats = "WORKFLOW.Api.GetServerInstanceStats" // APIGetServerInstanceStats is the get server instance status API subject. APIGetServiceTaskRoutingID = "WORKFLOW.Api.GetServiceTaskRoutingID" // APIGetServiceTaskRoutingID is the get client routing ID for a service task API subject. APIGetMessageSenderRoutingID = "WORKFLOW.Api.GetMessageSenderRoutingID" // APIGetMessageSenderRoutingID is the get message sender routing ID API subject. )
Variables ¶
View Source
var ( KvMessageSubs = "WORKFLOW_MSGSUBS" // KvMessageSubs is the name of the key value store that holds the list of message subscriber IDs for a workflow message. KvMessageSub = "WORKFLOW_MSGSUB" // KvMessageSub is the name of the key value store that holds each message subscriber. KvJob = "WORKFLOW_JOB" // KvJob is the name of the key value store that holds workflow jobs. KvVersion = "WORKFLOW_VERSION" // KvVersion is the name of the key value store that holds an ordered list of workflow version IDs for a given workflow KvDefinition = "WORKFLOW_DEF" // KvDefinition is the name of the key value store that holds the state machine definition for workflows KvTracking = "WORKFLOW_TRACKING" // KvTracking is the name of the key value store that holds the state of a workflow task. KvInstance = "WORKFLOW_INSTANCE" // KvInstance is the name of the key value store that holds workflow instance information. KvMessageName = "WORKFLOW_MSGNAME" // KvMessageName is the name of the key value store that holds message IDs for message names. KvMessageID = "WORKFLOW_MSGID" // KvMessageID is the name of the key value store that holds message names for message IDs KvUserTask = "WORKFLOW_USERTASK" // KvUserTask is the name of the key value store that holds active user tasks. KvOwnerName = "WORKFLOW_OWNERNAME" // KvOwnerName is the name of the key value store that holds owner names for owner IDs KvOwnerID = "WORKFLOW_OWNERID" // KvOwnerID is the name of the key value store that holds owner IDs for owner names. KvClientTaskID = "WORKFLOW_CLIENTTASK" // KvClientTaskID is the name of the key value store that holds the unique ID used by clients to subscribe to service task messages. KvWfName = "WORKFLOW_NAME" // KvWfName is the name of the key value store that holds workflow IDs for workflow names. KvVarState = "WORKFLOW_VARSTATE" // KvVarState is the name of the key value store that holds the state of variables upon entering a task. )
View Source
var AllMessages = []string{ subj.NS(WorkflowInstanceAll, "*"), subj.NS(WorkFlowJobCompleteAll, "*"), subj.NS(WorkFlowJobAbortAll, "*"), subj.NS(WorkflowJobServiceTaskExecuteWild, "*"), subj.NS(WorkflowJobSendMessageExecuteWild, "*"), subj.NS(WorkflowJobUserTaskExecute, "*"), subj.NS(WorkflowJobManualTaskExecute, "*"), subj.NS(WorkflowJobTimerTaskExecute, "*"), subj.NS(WorkflowJobLaunchExecute, "*"), subj.NS(WorkflowActivityExecute, "*"), subj.NS(WorkflowActivityComplete, "*"), subj.NS(WorkflowActivityAbort, "*"), subj.NS(WorkflowTraversalExecute, "*"), subj.NS(WorkflowTraversalComplete, "*"), subj.NS(WorkflowMessages, "*"), subj.NS(WorkflowTimedExecute, "*"), subj.NS(WorkflowElementTimedExecute, "*"), subj.NS(WorkflowCommands, "*"), subj.NS(WorkflowLogAll, "*"), APIAll, }
AllMessages provides the list of subscriptions for the WORKFLOW stream.
View Source
var LogLevels = []WorkflowLogLevel{ LogFatal, LogError, LogWarn, LogInfo, LogDebug, }
LogLevels provides a way of using an index to select a log level.
View Source
var WorkflowMessageFormat = "WORKFLOW.%s.Message.%s.%s"
WorkflowMessageFormat provides the template for sending workflow messages.
Functions ¶
This section is empty.
Types ¶
type WorkflowLogLevel ¶ added in v1.0.271
type WorkflowLogLevel string
WorkflowLogLevel represents a subject suffox for logging levels
const ( LogFatal WorkflowLogLevel = ".Fatal" // LogFatal is the suffix for a fatal error. LogError WorkflowLogLevel = ".Error" // LogError is the suffix for an error. LogWarn WorkflowLogLevel = ".Warning" // LogWarn is the suffix for a warning. LogInfo WorkflowLogLevel = ".Info" // LogInfo is the suffix for an information message. LogDebug WorkflowLogLevel = ".Debug" // LogDebug is the suffix for a debug message. )
Click to show internal directories.
Click to hide internal directories.