- All Known Subinterfaces:
public interface IActionActions are the lightweight alternative to platform components (see
IComponent). Actions participate in action sequences and can be provided inputs and resources by the typical means, as defined in xaction solution files. The
IActionfamily of interfaces focuses on describing the *minimal* contract between the Pentaho BI Platform and an Action in the same way that
IComponentdescribes a similar but more involved contract.
The Pentaho BI Platform expects Action objects to be Java bean API compliant with respect to setting inputs, setting resources, and getting outputs. In other words, if your action needs takes a string input, the action definition in the xaction solution file will specify this string input, and the Action framework will cause that value to be set via a setter method on the Action object. You do not see parameter Maps and such in the Action API for this reason. All inputs, output, and resources IO will involve Java bean reflection on your Action object to find the appropriate IO methods.
void execute() throws ExceptionThe method in your Action that does the work.
Exception- if there was an error executing the Action
default boolean isExecutionSuccessful()Provide the execution status of last Action. For backward compatibility, it is declared as default method which returns true
- boolean Indicate true for success and false for failure