Class PushNotificationWorkflowAction
java.lang.Object
de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
de.uplanet.lucy.server.mobile.workflow.action.PushNotificationWorkflowAction
- All Implemented Interfaces:
IActivatableWorkflowObject
,ILogLevelAware
,INamedWorkflowObject
,INeedWorkflow
,INeedWorkflowDirectory
,IWorkflowAction
,IWorkflowObject
,Serializable
public final class PushNotificationWorkflowAction
extends AbstractWorkflowAction
implements ILogLevelAware, INeedWorkflowDirectory
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.uplanet.lucy.server.mobile.workflow.action.BodyCfg
getBody()
de.uplanet.lucy.server.mobile.workflow.action.LinkCfg
de.uplanet.lucy.server.mobile.workflow.action.LinkCfg
de.uplanet.lucy.server.mobile.workflow.action.RecipientCfg
de.uplanet.lucy.server.mobile.workflow.action.SenderCfg
long
de.uplanet.lucy.server.mobile.workflow.action.TitleCfg
getTitle()
Get the workflow directory.boolean
isDryRun()
boolean
This flag determines if verbose logging is turned on or off.boolean
This property specifies whether or not messages should be pushed asynchronously if possible.boolean
This property specifies whether or not pushing a message should be part of the current transaction or not.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.void
setBody
(de.uplanet.lucy.server.mobile.workflow.action.BodyCfg p_bodyCfg) void
setCollapseKey
(String p_strCollapseKey) void
setDryRun
(boolean p_bDryRun) void
setLinkDesktop
(de.uplanet.lucy.server.mobile.workflow.action.LinkCfg p_linkDesktopCfg) void
setLinkMobile
(de.uplanet.lucy.server.mobile.workflow.action.LinkCfg p_linkMobileCfg) void
setLogVerbose
(boolean p_bLogVerbose) This flag determines if verbose logging is turned on or off.void
setPortalName
(String p_strPortalName) void
setPushAsynchronous
(boolean p_bPushAsynchronous) This property specifies whether or not messages should be pushed asynchronously if possible.void
setRecipients
(de.uplanet.lucy.server.mobile.workflow.action.RecipientCfg p_recipientCfg) void
setSender
(de.uplanet.lucy.server.mobile.workflow.action.SenderCfg p_senderCfg) void
setTimeToLive
(long p_lTimeToLive) void
setTitle
(de.uplanet.lucy.server.mobile.workflow.action.TitleCfg p_titleCfg) void
setUseTransaction
(boolean p_bUseTransaction) This property specifies whether or not pushing a message should be part of the current transaction or not.void
setWorkflowDirectory
(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
-
PushNotificationWorkflowAction
-
-
Method Details
-
getWorkflowDirectory
Description copied from interface:INeedWorkflowDirectory
Get the workflow directory.- Specified by:
getWorkflowDirectory
in interfaceINeedWorkflowDirectory
- Returns:
- The workflow directory.
-
setWorkflowDirectory
Description copied from interface:INeedWorkflowDirectory
Set the workflow directory.- Specified by:
setWorkflowDirectory
in interfaceINeedWorkflowDirectory
- Parameters:
p_dir
- The workflow directory.
-
getSender
public de.uplanet.lucy.server.mobile.workflow.action.SenderCfg getSender() -
setSender
public void setSender(de.uplanet.lucy.server.mobile.workflow.action.SenderCfg p_senderCfg) -
getRecipients
public de.uplanet.lucy.server.mobile.workflow.action.RecipientCfg getRecipients() -
setRecipients
public void setRecipients(de.uplanet.lucy.server.mobile.workflow.action.RecipientCfg p_recipientCfg) -
getTitle
public de.uplanet.lucy.server.mobile.workflow.action.TitleCfg getTitle() -
setTitle
public void setTitle(de.uplanet.lucy.server.mobile.workflow.action.TitleCfg p_titleCfg) -
getBody
public de.uplanet.lucy.server.mobile.workflow.action.BodyCfg getBody() -
setBody
public void setBody(de.uplanet.lucy.server.mobile.workflow.action.BodyCfg p_bodyCfg) -
getLinkMobile
public de.uplanet.lucy.server.mobile.workflow.action.LinkCfg getLinkMobile() -
setLinkMobile
public void setLinkMobile(de.uplanet.lucy.server.mobile.workflow.action.LinkCfg p_linkMobileCfg) -
getLinkDesktop
public de.uplanet.lucy.server.mobile.workflow.action.LinkCfg getLinkDesktop() -
setLinkDesktop
public void setLinkDesktop(de.uplanet.lucy.server.mobile.workflow.action.LinkCfg p_linkDesktopCfg) -
getPortalName
-
setPortalName
-
getTimeToLive
public long getTimeToLive() -
setTimeToLive
public void setTimeToLive(long p_lTimeToLive) -
getCollapseKey
-
setCollapseKey
-
isUseTransaction
public boolean isUseTransaction()This property specifies whether or not pushing a message should be part of the current transaction or not.If
true
this implies asynchronous sending.- Returns:
true
if pushing a message should be part of the current transaction, orfalse
otherwise.
-
setUseTransaction
public void setUseTransaction(boolean p_bUseTransaction) This property specifies whether or not pushing a message should be part of the current transaction or not.If
true
this implies asynchronous sending.- Parameters:
p_bUseTransaction
-true
if pushing a message should be part of the current transaction, orfalse
otherwise.
-
isPushAsynchronous
public boolean isPushAsynchronous()This property specifies whether or not messages should be pushed asynchronously if possible.If transactions are
used
or the message to be sent has multiple recipients, this property is ignored.- Returns:
true
if messages should be pushed asynchronously, orfalse
otherwise.
-
setPushAsynchronous
public void setPushAsynchronous(boolean p_bPushAsynchronous) This property specifies whether or not messages should be pushed asynchronously if possible.If transactions are
used
or the message to be sent has multiple recipients, this property is ignored.- Parameters:
p_bPushAsynchronous
-true
if messages should be pushed asynchronously, orfalse
otherwise.
-
isDryRun
public boolean isDryRun() -
setDryRun
public void setDryRun(boolean p_bDryRun) -
isLogVerbose
public boolean isLogVerbose()Description copied from interface:ILogLevelAware
This flag determines if verbose logging is turned on or off.- Specified by:
isLogVerbose
in interfaceILogLevelAware
- Returns:
true
if logging is verbose, orfalse
otherwise.
-
setLogVerbose
public void setLogVerbose(boolean p_bLogVerbose) Description copied from interface:ILogLevelAware
This flag determines if verbose logging is turned on or off.- Specified by:
setLogVerbose
in interfaceILogLevelAware
- Parameters:
p_bLogVerbose
-true
if logging should be verbose, orfalse
otherwise.
-
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:IWorkflowAction
Process 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:
process
in 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.
-