Package com.aquima.interactions.portal
Class PortalMessageAction
java.lang.Object
com.aquima.interactions.portal.PortalMessageAction
- All Implemented Interfaces:
Serializable
The class describes the action for a portal message.
- Since:
- 9.2
- Author:
- A.Pragt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(IPortalMessage message, IActionContext context) Executes this action by mapping the fields of the portal message to attributes.static PortalMessageAction
getFieldMapping
(String fieldName) Returns the target attribute for a data field.void
setFieldMapping
(String fieldName, AttributeReference attribute) Adds a mapping of a message field to an attribute.
-
Constructor Details
-
PortalMessageAction
public PortalMessageAction()
-
-
Method Details
-
forRestart
-
setFieldMapping
Adds a mapping of a message field to an attribute.- Parameters:
fieldName
- The name of the field, not null.attribute
- The target attribute, not null.
-
getFieldMapping
Returns the target attribute for a data field.- Parameters:
fieldName
- The name of the field, not null.- Returns:
- The target attribute, never null.
-
execute
Executes this action by mapping the fields of the portal message to attributes.- Parameters:
message
- the portal message whose fields are to be mappedcontext
- contextual information required to perform the mapping- Returns:
- a map that can be used as flow parameters for the restarted flow
-