A customer would like to know a way to call a Java Method when a Node is created or published.
A way to call a Java Method is with a rule, you can call an action when a node is created or published
===============================
<bean class="com.mae.bureau.actualite.SendActualiteNotificationAction" name="actualiteNotificationAction">
<property name="name" value="actualiteNotificationAction"/>
</bean>
rule "Send notification when created actualite"
.........
then
Log "----- Before send notification when created an actualite" + node.getName()
Execute the action "actualiteNotificationAction" now on the node
Log "----- After send notification when created an actualite: " + node.getName()
end
===============================