Creating an ActiveMatrix Service Grid Composite Wrapper for a Custom Action
- Procedure
- Create an SOA project using TIBCO Business Studio - BPM Edition.
- Ensure all the options are selected and click
Next.
- Create an empty SOA project and click
Finish. This creates an empty composite. Add a
Java component to the composite.
- Open the
composite file in a text editor and add the given tags after substituting the customA action name in to the tags:
<scaext:extension xmi:id="_wefwedADASDsada" name="com.tibco.governance.custom.action.customAction.amxcomponent.CustomActionComponent" requiredVersion="1.0.0" extensionPoint="com.tibco.governance.agent.amxcomponent.extensionpoint.actionconfigurationprocessor"/>
Also edit the sca:composite tab to define the scaext namespace. For example:xmlns:scaext=http://xsd.tns.tibco.com/amf/models/sca/extensions
- Right-click the
Java component and generate the
Implementation. Enter the name of the project and click
Finish. This generates two classes:
AbstractCustomActionComponent
andCustomActionComponent
. - Navigate to
MANIFEST.MF of the generated implementation and ensure that the packages are added. If not, manually add the packages.
- Once the setup is complete, in the
CustomActionComponent
class, import the classcom.tibco.amf.platform.runtime.extension.Extension
and add the @Extension notation at the top of the class declaration. - Import
ActionConfigurationProcessor
,CustomActionConfigurationProcessor
, andActionConfigurationProcessorExtensionPoint (com.tibco.governance.agent.action.ActionConfigurationProcessor)
. This component class must implement theActionConfigurationProcessorExtensionPoint (com.tibco.governance.agent.amxcomponent.extensionpoint.ActionConfigurationProcessorExtensionPoint)
interface. From theinit()
method of the component class, callinitialize
of theCustomActionConfigurationProcessor
. - Navigate to the
customfeature file under the
com.tibco.governance.custom.action.customaction/DeploymentArtifacts
and ensure that both theamxcomponent plug-ins and the custom action plug-in are included in the Included Plug-ins tab. - Generate the DAA. The DAA containing the action can now be deployed on ActiveMatrix Service Grid.
For a completely implemented ActiveMatrix Service Grid component, see Request Counter in Sample Action Source Code.