This plugin uses the value in the template parameter of the activity and replaces the title and body of the activity with the template parameter of this activity.
To use the plugin in the component configuration, you must use the following target-component:
<target-component>org.exoplatform.social.core.manager.ActivityManager</target-component>
Sample configuration:
<component-plugin>
<name>TemplateParamsProcessor</name>
<set-method>addProcessorPlugin</set-method>
<type>org.exoplatform.social.core.processor.TemplateParamsProcessor</type>
<init-params>
<value-param>
<name>priority</name>
<value>1</value>
</value-param>
</init-params>
</component-plugin>
In which:
Name:
TemplateParamsProcessor
Set-method:
addProcessorPlugin
Type:
org.exoplatform.social.core.processor.TemplateParamsProcessor
Init-params:
Name | Possible value | Default value | Description |
---|---|---|---|
priority |
integer
| 1 | The priority of this processor. The lower priority level is executed first. |