Versions Compared

Key

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

Process

Classes

Process classes are Controller classes used to implement all the process flows by calling the business objects. Basically, they are used to implement any batch, background or interactive process in the system. We also use EJBs (Stateless Session Beans) for the process classes as well to implement the process functionality.

 

What does this section cover?

Table of Contents

Creating the Process Classes

In this example, we are going to implement a process class that will create a number of installed items. . The first thing to do is to create an EJB that will handle our process class. In order to create our class we must first decide the name of the package to place it in. Based on the business structure, the respective packages should be created. Based on CRM.COM naming conventions, all process classes are stored in the All process classes should be placed under com.crm.process.* named packages and extend either com.crm.process package. Based on the module we are implementing, further packages are then created in here.

 

In this case, we will create the package .CRMProcess or one of its subclasses. Process classes that are handled by the scheduler should extend com.crm.process.inventory that will contain the module's process classes, and create the CRMProcessInstalledItemBean.java classCRMProcessRunBean.

 

Expand
titleCreating CRMProcessInstalledItemBean.java

Image RemovedImage Added

Image Removed

 

...

Image Added

 

 

To implement the desired process flow we add the corresponding methods.

...