Plugin Methods
Introduction
General
- A
Plugin Methodis a configurable unit that defines how to call a specific method from a plugin to retrieve data.
Method Arguments
- When calling a
Plugin Method, we support passing configured arguments. These arguments can be either static or dynamic. For dynamic arguments, we provide placeholders for values:<Publication.Id>: Represents the current publication ID.<Template.Id>: Represents the template ID of the current publication.<Session.Id>: Represents the current session ID.<Entity.Context>: Represents the current entity context.<Metadata.{metadata_identifier}: Represents the value of publication metadata (mapped by metadata identifier).
Configuration
- All
Plugin Methodconfiguration can be managed in the ISON configuration.
ISON Configuration Details
Sample
<methods>
<method id="plugin_method">
<pluginMappedName>plugin_mapped_name</pluginMappedName>
<methodName>method_name</methodName>
<arguments>
<argument key="Session.Id"><Session.Id></argument>
<argument key="Entity.Context"><Entity.Context></argument>
<argument key="Variable.name_1">value_1</argument>
<argument key="Variable.Metadata_1"><Metadata.metadata_1></argument>
</arguments>
</method>
</methods>
Explanation
<methods>: Wrapper element forPlugin Methodsconfiguration.<method>: Each<method>element represents the configuration for a singlePlugin Method.- Attributes:
id: The unique ID of theMethod. This attribute is required.
- Elements:
pluginMappedName: Mapped Name of the plugin. This element is required.methodName: The name of theMethod. This element is required.arguments: Wrapper element for method arguments configuration.argument: Defines an individual argument for the method call.- Attributes:
key: The key of the argument. This attribute is required.
- Attributes:
- Attributes: