Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a custom EJB class extending com.crm.businessobject.CRMBase and implementing com.crm.hooks.CRMBOHook interface.
  2. Declare your hook implementation class in hooks.xml file which is located under <your_custom_project_directory>/src/main/resources

 

Expand
titleExample
Code Block
themeEclipse
languagexml
titlehooks.xml
<hookconfig>
	<hooks>
		...
		<hook>
			<serviceclass>CRMBOContactInformationBean</serviceclass>
			<interfacename>CRMBOHook</interfacename>
			<implementationclass>CUSTOMCRMBOContactInformationBean</implementationclass>
		</hook>
	</hooks>
</hookconfig>


Processes

To be able to extend the functionality of an existing Process EJB class you have to:

...

  1. Create a custom EJB class extending com.crm.process.CRMProcess and implementing one of the interfaces found in com.crm.hooks package. Keep in mind that there are available interfaces for some but not all processes.
  2. Declare your hook implementation class in hooks.xml file which is located under <your_custom_project_directory>/src/main/resources. 


 

Expand
titleExample
Code Block
themeEclipse
languagexml
titlehooks.xml
<hookconfig>
	<hooks>
		...
		<hook>
			<serviceclass>CRMProcessServiceRequestBean</serviceclass>
			<interfacename>CRMProcessServiceRequestHook</interfacename>
			<implementationclass>CUSTOMCRMProcessServiceRequestBean</implementationclass>
		</hook>
	</hooks>
</hookconfig>