use of org.pentaho.actionsequence.dom.actions.FormatMsgAction in project pentaho-platform by pentaho.
the class UtilityComponent method executeAction.
/*
* (non-Javadoc)
*
* @see org.pentaho.component.ComponentBase#execute()
*/
@Override
protected boolean executeAction() {
IActionDefinition actionDefinition = getActionDefinition();
// Make sure we start with an empty list in
tmpOutputs = new HashMap();
boolean result = true;
if (actionDefinition instanceof CopyParamAction) {
executeCopyAction((CopyParamAction) actionDefinition);
} else if (actionDefinition instanceof FormatMsgAction) {
executeFormatAction((FormatMsgAction) actionDefinition);
} else if (actionDefinition instanceof PrintMapValsAction) {
executeGetMapValuesAction((PrintMapValsAction) actionDefinition);
} else if (actionDefinition instanceof PrintParamAction) {
executePrintParamAction((PrintParamAction) actionDefinition);
} else {
// This component allows multiple actions to be defined in a single action definition.
// While this is no longer supported by the design studio, it needs to be supported here
// for backwards compatibility with older action sequence documents.
result = executeAction(actionDefinition);
}
return result;
// this iteration
}
use of org.pentaho.actionsequence.dom.actions.FormatMsgAction in project pentaho-platform by pentaho.
the class UtilityComponent method validateAction.
@Override
protected boolean validateAction() {
boolean result = true;
IActionDefinition actionDefinition = getActionDefinition();
if (actionDefinition instanceof CopyParamAction) {
result = validateCopyAction((CopyParamAction) actionDefinition);
} else if (actionDefinition instanceof FormatMsgAction) {
result = validateFormatAction((FormatMsgAction) actionDefinition);
} else if (actionDefinition instanceof PrintMapValsAction) {
result = validateGetMapValuesAction((PrintMapValsAction) actionDefinition);
} else if (actionDefinition instanceof PrintParamAction) {
result = validatePrintParamAction((PrintParamAction) actionDefinition);
} else {
// This component allows multiple actions to be defined in a single action definition.
// While this is no longer supported by the design studio, it needs to be supported here
// for backwards compatibility with older action sequence documents.
result = validateAction(actionDefinition);
}
return result;
}
Aggregations