Portlet Factory, Version 6.1.2
Action List builder
The Action List builder adds a set of one or more actions to the WebApp.
When you call the ActionList, each action in the set executes before returning control back to the web application. You can easily profile the entire list of actions, or profile one or more individual actions within the list. Each action in the list can do one of the following:
- Display a page.
- Execute a method.
- Compare the values of two variables.
- Return the value of a variable, the result of a method call, the result of a Java Expression, or an Input value.
- Execute an action based on conditional logic.
- Add a comment to the action list.
Note: This does not get executed, but acts as a comment for the ActionList and is analogous to a comment embedded in a Java code segment.
Quick tips
- Assign or append values to variables
- Select the Assignment element displayed in the Action Chooser and use the reference chooser to select the element in the model that will supply the value. Then select the variable in which to store the value in the displayed dialog.
- Return a value from an Action List
- Select the Return element displayed in the Action Chooser and use the reference chooser to select an element in the model whose value you want to return.
- Return of the Last Action
- The action list automatically returns the results of the last action. You do not need to explicitly return the result of that action.
- Drag and drop actions in the list
- You can rearrange the actions in the action list by dragging and dropping them into the desired order.
- Insert and Delete actions in the list
- You can insert and delete actions by right-clicking and choosing the appropriate operation from the pop-up menu.
- Logging systemOut Messages
- This builder sends systemOut messages to the debugTracing log located in the deployed .../WEB-INF/logs directory.
For example, in IBM® WebSphere® Portal server, the log files for running as a portlet are found in the directory of the deployed portlet WAR file. If the portlet is run standalone or the widget is run locally, log files can be found in the deployed enterprise application directory.
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Action List builder inputs
This topic describes the inputs for the Action List builder.
- About using arguments with an action
Arguments to an action list allow you to "explicitly parameterize" an action, that is, allow an action list to have different behaviors based on the values of some pieces of data, and be able to clearly identify and separate those data items from the general environment.
- About using special actions
Several special actions are available that support debugging and other operations.
- Comparison results
This topic describes comparison results that adhere to Java conventions.
- Creating a comment action
You can create a comment action in an action list builder call.
- Creating an action that returns a value
In the Action List builder, you can choose the Return element in the Action Chooser to create an action that returns a value.
- Creating an action that assigns or appends a value to a variable
You can create an action that assigns a value to a variable by choosing the Assignment element in the Action Chooser.
- Creating conditional action lists
You can use the Action Chooser to implement if/else statements within an action list.
- Profiling actions in an action list
You can alter the actions contained in an action list for different types of users.
- Profiling actions on and off in an action list
Follow these steps to profile actions on and off in an action list.
- Web Service Enable builder
Use the Web Service Enable builder to create a Web service from a model.
- Jakarta regexp package
Library | Support |