Running the Business Service Class Wizard

The Business Service Class Wizard creates a new business service class by extending the business service framework BusinessService class. This foundation class, along with other framework foundation classes, provides the building blocks for you to create a new business service class.

The wizard steps you through a series of tasks, prompting you for information for naming the class, the method, and the internal value object. As a final step, the wizard generates code for the business service class and displays this code in the edit pane of JDeveloper.

JDeveloper provides prompts and visual aids help you complete the generated code. The generated code also has TODO tags to help you. If the business service class requires more than one method, you must add code for each additional method. JD Edwards EnterpriseOne provides code templates that you can apply to the generated code. The methodology guide provides naming conventions for the various elements of the business service, and it also provides detail guidance for creating a business service.

To run the Business Service Class Wizard:

  1. In the JDeveloper navigation pane, select the project.

  2. Right-click the project.

  3. From the context menu, click New.

  4. On the New Gallery window, open EnterpriseOne and select Classes, and then select Business Service Class.

  5. Click OK to launch the wizard.

  6. On the Create EnterpriseOne Business Service Class, complete these fields:

    • Name

    • Method Name

    • Input Class

  7. Click OK.

    JDeveloper displays the generated code in the edit pane.

  8. Update the generated code.

  9. From the JDeveloper File menu, save and exit the code.

The business service class is saved in the project you selected. You can open the class and the code by double-clicking the Java file.

Name

Enter a user-defined designation for the business service class. This name is usually a functional description of the method with the word Processor added at the end of the name, for example, AddressBookProcessor.

Method Name

Enter a user-defined designation for the operation to be performed. This name is usually the same name as the method in the published business service, for example, addAddressBook.

Input Class

Enter the class name for the internal value object.