Class WebSocketWorkflowAction
java.lang.Object
de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
de.uplanet.lucy.server.websocket.workflow.action.WebSocketWorkflowAction
- All Implemented Interfaces:
IActivatableWorkflowObject,INamedWorkflowObject,INeedWorkflow,INeedWorkflowDirectory,IWorkflowAction,IWorkflowObject,Serializable
public final class WebSocketWorkflowAction
extends AbstractWorkflowAction
implements INeedWorkflowDirectory
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get the message data configuration.Get the topic GUID.Get the workflow directory.booleanIf this property istruethe message created will only be sent after the current transaction has been committed.booleanDetermine if this action uses transacted Websocket sessions.process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.voidsetData(WebSocketWorkflowAction.DataCfg p_dataCfg) Set the message data configuration.voidsetSendMessageAfterCommit(boolean p_bSendMessageAfterCommit) If this property istruethe message created will only be sent after the current transaction has been committed.voidsetTopicGuid(String p_strTopicGuid) Set the topic GUID.voidsetUseTransactedSession(boolean p_bUseTransactedSession) Determine if this action uses transacted Websocket sessions.voidsetWorkflowDirectory(Path p_dir) Set the workflow directory.Methods inherited from class de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
getAfferentTransition, getEfferentTransition, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransition, setName, setWorkflow, toString
-
Constructor Details
-
WebSocketWorkflowAction
-
-
Method Details
-
getWorkflowDirectory
Description copied from interface:INeedWorkflowDirectoryGet the workflow directory.- Specified by:
getWorkflowDirectoryin interfaceINeedWorkflowDirectory- Returns:
- The workflow directory.
-
setWorkflowDirectory
Description copied from interface:INeedWorkflowDirectorySet the workflow directory.- Specified by:
setWorkflowDirectoryin interfaceINeedWorkflowDirectory- Parameters:
p_dir- The workflow directory.
-
getData
Get the message data configuration.- Returns:
- The message data configuration.
-
setData
Set the message data configuration.- Parameters:
p_dataCfg- The message data configuration.
-
isSendMessageAfterCommit
public boolean isSendMessageAfterCommit()If this property istruethe message created will only be sent after the current transaction has been committed.Default is
false.- Returns:
trueif the message created will only be sent after the current transaction has been committed, orfalseotherwise.
-
setSendMessageAfterCommit
public void setSendMessageAfterCommit(boolean p_bSendMessageAfterCommit) If this property istruethe message created will only be sent after the current transaction has been committed.Default is
false.- Parameters:
p_bSendMessageAfterCommit-trueif the message created should only be sent after the current transaction has been committed, orfalseotherwise.
-
isUseTransactedSession
public boolean isUseTransactedSession()Determine if this action uses transacted Websocket sessions.Default is
true.- Returns:
trueif this action uses transacted Websocket sessions, orfalseotherwise.
-
setUseTransactedSession
public void setUseTransactedSession(boolean p_bUseTransactedSession) Determine if this action uses transacted Websocket sessions.Default is
true.- Parameters:
p_bUseTransactedSession-trueif this action should use transacted Websocket sessions, orfalseotherwise.
-
setTopicGuid
Set the topic GUID.- Parameters:
p_strTopicGuid- The topic GUID to be set.
-
getTopicGuid
Get the topic GUID.- Returns:
- The topic GUID.
-
process
public WorkflowTransition process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Description copied from interface:IWorkflowActionProcess a workflow event in the given context.Normally, a workflow action should return its efferent transition, regardless whether it is
active, or not.- Specified by:
processin interfaceIWorkflowAction- Parameters:
p_evt- The event to be processed.p_wfCtx- The workflow processing context.p_ctx- The processing context.- Returns:
- The efferent transition, or
null. - Throws:
Exception- If an error occurred.
-