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
Open the application in the
Object Manager panel.
Under the
Detail section, choose the
Contained Objects tab.
The
Contained Objects tab page opens.
Choose
Action from the
Type field and choose
Create Object .
In the
Object Creation dialog box that appears, choose
Static Method (Actn) from the
Type field.
Enter the name of the action.
Choose
Create and navigate to object .
You are directly navigated to the action object that you have created.
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.
Enter the name of the class or choose
in the
Class field.
In the list that appears, select a relevant class and choose
OK .
The selected class is added.
Add parameters to the action.
You can add an existing expression or create a new expression.
Add an Existing Expression
Under
Detail section, choose
Add ParameterSelect....
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.
Select the expression.
Add a New Expression
Under
Detail section, choose
Add ParameterCreate....
In the
Object Creation dialog box that appears, enter the name, select the type of expression and choose
Create .