Show TOC

Procedure documentationCreating a Static Method Call Action Locate this document in the navigation structure

 

A static method call action is used to call a static method in a class that implements a special interface. It takes a class that implements the interface and calls the static method on that class.

Procedure

  1. Open the application in the Object Manager panel.

  2. Under the Detail section, choose the Contained Objects tab.

    The Contained Objects tab page opens.

  3. Choose Action from the Type field and choose Create Object.

  4. In the Object Creation dialog box that appears, choose Static Method (Actn) from the Type field.

  5. Enter the name of the action.

  6. Choose Create and navigate to object.

    You are directly navigated to the action object that you have created.

    Note Note

    If you choose Create button, the created action object appears under the Contained Objects tab. Click the name of the created object to define the action messages.

    End of the note.

    This graphic is explained in the accompanying text.

  7. Enter the name of the class or choose Advanced (Advanced) in the Class field.

  8. In the list that appears, select a relevant class and choose OK.

    The selected class is added.

  9. Add parameters to the action.

    You can add an existing expression or create a new expression.

    • Add an Existing Expression

      1. Under Detail section, choose   Add Parameter   Select...  .

      2. In the Object Query dialog box that appears, enter the name of the expression in the Object Name field and choose Search.

        The expression appears below the Search button.

      3. Select the expression.

    • Add a New Expression

      1. Under Detail section, choose   Add Parameter   Create...  .

      2. In the Object Creation dialog box that appears, enter the name, select the type of expression and choose Create.

        For more information, see Creating Expressions

  10. Activate the action.

  11. Save the action.

More Information

Adding Followup Actions