Class AbstractJMSMessageProducerWorkflowAction
java.lang.Object
de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
de.uplanet.lucy.server.jms.workflow.action.AbstractJMSMessageProducerWorkflowAction
- All Implemented Interfaces:
de.uplanet.lucy.server.workflow.authentication.INeedCredentialSupplier,de.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier,IActivatableWorkflowObject,INamedWorkflowObject,de.uplanet.lucy.server.workflow.INeedParameterProvider,INeedWorkflow,IWorkflowAction,IWorkflowObject,Serializable
- Direct Known Subclasses:
JMSQueueMessageProducerWorkflowAction,JMSTopicMessageProducerWorkflowAction
public abstract class AbstractJMSMessageProducerWorkflowAction
extends AbstractWorkflowAction
implements de.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier, de.uplanet.lucy.server.workflow.INeedParameterProvider
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the broker URL.Get the client identifier for the JMS connection.getData()Get the message data configuration.Get the delivery mode.Get the password that is used when creating the JMS connection.longGet the time-to-live of messages generated by this action.Get the user identity that used when creating the JMS connection.de.uplanet.lucy.server.parameterstore.IParameterProvidervoidinternalSetParameterProvider(de.uplanet.lucy.server.parameterstore.IParameterProvider p_pp) voidinternalSetPasswordSupplier(de.uplanet.lucy.server.workflow.authentication.IPasswordSupplier p_passwordSupplier) booleanThis property determines if it is an error when no data are available at runtime.booleanDetermine if this action uses transacted JMS 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.voidsetBrokerUrl(String p_strBrokerUrl) Set the broker URL.voidsetBrokerUrlParamRef(String p_strParamRef) voidsetClientId(String p_strClientId) Set the client identifier for the JMS connection.voidSet the message data configuration.voidsetDeliveryMode(String p_strDeliveryMode) Set the delivery mode.voidsetNoMessageDataIsError(boolean p_bNoMessageDataIsError) This property determines if it is an error when no data are available at runtime.voidsetPassword(String p_strPassword) Set the password that is used when creating the JMS connection.voidsetTimeToLive(long p_timeToLive) Set time-to-live of messages generated by this action.voidsetUserName(String p_strUserName) Set the user identity that used when creating the JMS connection.voidsetUserNameParamRef(String p_strParamRef) voidsetUseTransactedSession(boolean p_bUseTransactedSession) Determine if this action uses transacted JMS sessions.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
-
AbstractJMSMessageProducerWorkflowAction
- Parameters:
p_strGuid- The GUID of the workflow action.- Throws:
IllegalArgumentException- If the GUID parameter isnullor if it does not represent a valid GUID.
-
-
Method Details
-
internalSetParameterProvider
public void internalSetParameterProvider(de.uplanet.lucy.server.parameterstore.IParameterProvider p_pp) - Specified by:
internalSetParameterProviderin interfacede.uplanet.lucy.server.workflow.INeedParameterProvider
-
internalGetParameterProvider
public de.uplanet.lucy.server.parameterstore.IParameterProvider internalGetParameterProvider()- Specified by:
internalGetParameterProviderin interfacede.uplanet.lucy.server.workflow.INeedParameterProvider
-
getBrokerUrl
Get the broker URL.- Returns:
- The broker URL.
-
setBrokerUrl
Set the broker URL.- Parameters:
p_strBrokerUrl- The broker URL.
-
getBrokerUrlParamRef
-
setBrokerUrlParamRef
-
getUserName
Get the user identity that used when creating the JMS connection.- Returns:
- The user identity.
-
setUserName
Set the user identity that used when creating the JMS connection.If this property is
null(default) the default user identity will be used.- Parameters:
p_strUserName- The user identity.
-
getUserNameParamRef
-
setUserNameParamRef
-
getPassword
Get the password that is used when creating the JMS connection.- Returns:
- The password.
-
setPassword
Set the password that is used when creating the JMS connection.- Parameters:
p_strPassword- The password.
-
internalSetPasswordSupplier
public void internalSetPasswordSupplier(de.uplanet.lucy.server.workflow.authentication.IPasswordSupplier p_passwordSupplier) - Specified by:
internalSetPasswordSupplierin interfacede.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier
-
internalGetPassword
- Specified by:
internalGetPasswordin interfacede.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier
-
getClientId
Get the client identifier for the JMS connection.Note: If a client identifier has been set, the user must ensure that not multiple instances of this action run in parallel transactions.
- Returns:
- The client identifier for the JMS connection.
-
setClientId
Set the client identifier for the JMS connection.Note: If a client identifier has been set, the user must ensure that not multiple instances of this action run in parallel transactions.
- Parameters:
p_strClientId- The client identifier for the JMS connection.
-
isUseTransactedSession
public boolean isUseTransactedSession()Determine if this action uses transacted JMS sessions.Default is
true.- Returns:
trueif this action uses transacted JMS sessions, orfalseotherwise.
-
setUseTransactedSession
public void setUseTransactedSession(boolean p_bUseTransactedSession) Determine if this action uses transacted JMS sessions.Default is
true.- Parameters:
p_bUseTransactedSession-trueif this action should use transacted JMS sessions, orfalseotherwise.
-
getDeliveryMode
Get the delivery mode.The default value is
NON_PERSISTENT.- Returns:
- The delivery mode.
-
setDeliveryMode
Set the delivery mode.- Parameters:
p_strDeliveryMode- EitherNON_PERSISTENT, orPERSISTENT.
-
getTimeToLive
public long getTimeToLive()Get the time-to-live of messages generated by this action.- Returns:
- The time-to-live in milliseconds.
-
setTimeToLive
public void setTimeToLive(long p_timeToLive) Set time-to-live of messages generated by this action.- Parameters:
p_timeToLive- The time-to-live in milliseconds. Zero is unlimited, a negative value means default.
-
getData
Get the message data configuration.- Returns:
- The message data configuration.
-
setData
Set the message data configuration.- Parameters:
p_dataCfg- The message data configuration.
-
isNoMessageDataIsError
public boolean isNoMessageDataIsError()This property determines if it is an error when no data are available at runtime.If it is an error, an exception is thrown. Otherwise this action does nothing.
- Returns:
trueif it is an error when no data are available, orfalseotherwise.
-
setNoMessageDataIsError
public void setNoMessageDataIsError(boolean p_bNoMessageDataIsError) This property determines if it is an error when no data are available at runtime.If it is an error, an exception is thrown. Otherwise this action does nothing.
- Parameters:
p_bNoMessageDataIsError-trueif it is an error when no data are available, orfalseotherwise.
-
process
public WorkflowTransition process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws WorkflowException, jakarta.jms.JMSException, de.uplanet.util.InvalidPropertyException, de.uplanet.lucy.server.businesslogic.BlException, InterruptedException 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:
InterruptedException- If processing of this action has been interrupted.WorkflowExceptionjakarta.jms.JMSExceptionde.uplanet.util.InvalidPropertyExceptionde.uplanet.lucy.server.businesslogic.BlException
-