Message Action
An action to send a message through a widgets' socket after the user clicks on the action button.
Action Definition
|
Name |
Message Action |
|
ID |
com.hybris.cockpitng.action.message |
|
Description |
An action to send a message through a socket. |
|
Author |
SAP |
|
Action Class Name |
com.hybris.cockpitng.actions.MessageAction |
|
Custom Renderer Class Name |
com.hybris.cockpitng.actions.MessageActionRenderer The renderer is an extension of DefaultActionRenderer. For more information, see Action Parameters. |
|
Inputs |
Not applicable. |
|
Outputs |
Not applicable. |
Action Preview
Not applicable.
Configuration
|
Parameter |
Type |
Description |
|---|---|---|
|
message |
java.lang.String |
SpEL expression, which is resolved against action's data. The result is sent through the output socket. |
|
socket |
java.lang.String |
Specifies a socket of particular widget, through which the message is sent. If the socket is not set, the message is not sent. |
Below, you can see the example of a configuration:
cockpit-config.xml
<context component="runme">
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<y:group qualifier="common">
<y:action action-id="com.hybris.cockpitng.action.message">
<y:parameter>
<y:name>message</y:name>
<y:value>sample</y:value>
</y:parameter>
<y:parameter>
<y:name>socket</y:name>
<y:value>outputSocket</y:value>
</y:parameter>
</y:action>
</y:group>
</y:actions>
</context>
Dependency
Not applicable.