Running the Business Function Value Object Class Wizard

You use the Business Function Value Object Wizard to create value objects that are based on data structures defined within a business function.

The Business Function Value Object Wizard guides you through a series of tasks to create value objects based on a business function data structure. You use the wizard to search for and find an existing business function to use as a model. The business function that you select should have all of the input and output parameters that are required for your new value object. You can select all or some of the business function parameters to include in your value object class. At the end of the process, the wizard generates code for the value object.

If you are creating a published business service, each business service method must have an input value object and an output value object. If a published business service calls two or more business services that have the same input or output parameters, the business services can share the appropriate input or output value object.

The wizard provides different ways for you to find an existing business function. On the wizard search page you can use the Find button to return all business functions in JD Edwards EnterpriseOne. You can scroll through all of the business functions and select one. If you have some information about the business function that you want to use, you can enter information in one or more of the search fields to filter the search. You can use wildcards in the search fields. For example, if you know the business function name has a 4 in it, you can use *4* in the Object Name field. If you know the name of the business function, you can use the Advanced Search feature to find the business function.

To run the Business Function Value Object 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 Function Value Object Class.

  5. Click OK to launch the wizard.

  6. On the Create EnterpriseOne Business Function Value Object, click Next.

  7. Enter credential information if required, and then click Next.

  8. On the wizard search page, find a business function by performing one of the following actions:

    • If you do not have any information about the business function, click Find to list all business functions and scroll through the list. Select a business function and then click Next.

    • If you have some information about the business function you want to use, complete one or more of these search fields to filter the list of business functions, and then click Find.

      – Object Name

      – System Code

      – System Code

      – Function Name

      – Reporting System Code

      – Description

      – Library

      You can use wildcards in any of these search fields.

      Select a business function from the search results, and then click Next.

    • If you know which business function you want to use, click Advanced Find.

      Using the drop-down list box, select the appropriate information for each of these fields, and then click Next:

      – Library

      – Module/Object Name

      – Function Name

  9. The next page of the wizard opens showing the attributes of the business function that you selected.

    You can sort the names of the parameters by clicking the Name column.

  10. Select the parameters that you want to include in your new value object class, and then click Next.

    You can select parameters individually by selecting the Include check box in the same row as the parameter that you want. When you select parameters individually, you can display the parameters that you selected by selecting the Display Select Only option. If you want to include all of the parameters in your value object, use the Select All button. Use the Clear All button to clear your selections and start over.

  11. On the EnterpriseOne Java Class wizard page, enter the name of the value object that you are creating in the Value Object Name field.

    Value object classes for business services should have the same name as the published business service value object name (input or output) prefaced with the word Internal.

  12. Select one of these Scope options:

    • Publish - if you are creating a value object class for a published business service.

    • Internal - if you are creating a value object class for an internal business service.

  13. Click Finish.

    If the name that you entered for the value object already exists, the wizard sends you a warning message. If the name is a new name, the value object Java file appears in the JDeveloper navigation pane under the project that you selected. Generated code is displayed in the JDeveloper edit pane.

  14. Use the visual aids and TODO tags to help you complete the generated code.

  15. To create accessors for the members in the value object Java file, right-click anywhere in the generated code.

  16. From the context menu, select generate accessors.

    The Generate Accessors dialog window appears.

  17. To select all members, click on the top-level check box.

  18. Click OK.

  19. Save the value object Java file.