Package org.pentaho.platform.api.action
Interface IAction
- All Known Subinterfaces:
IDefinitionAwareAction
,ILoggingAction
,IPostProcessingAction
,IPreProcessingAction
,ISessionAwareAction
,IStreamingAction
,IStreamProcessingAction
,IVarArgsAction
public interface IAction
Actions 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 IAction
family of
interfaces focuses on describing the *minimal* contract between the Pentaho BI Platform and an Action in the
same way that IComponent
describes 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.
- Since:
- 3.6
- Author:
- aphillips
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
The method in your Action that does the work.default boolean
Provide the execution status of last Action.
-
Method Details
-
execute
The method in your Action that does the work.- Throws:
Exception
- if there was an error executing the Action
-
isExecutionSuccessful
default boolean isExecutionSuccessful()Provide the execution status of last Action. For backward compatibility, it is declared as default method which returns true- Returns:
- boolean Indicate true for success and false for failure
-