Package org.pentaho.actionsequence.dom.actions

Examples of org.pentaho.actionsequence.dom.actions.ActionDefinition


        // JFreeReport
        // action in the action sequence. That action performs the desired query, then pass the results of that query to
        // the JFreeReport
        // action.
        jFreeReportAction.setComponentName( dataComponentName );
        ActionDefinition tmpActionDefinition =
            ActionFactory.getActionDefinition( jFreeReportAction.getElement(), jFreeReportAction
                .getActionParameterMgr() );
        final Class componentClass = Class.forName( dataComponentName );
        IDataComponent dataComponent = (IDataComponent) componentClass.newInstance();
        dataComponent.setInstanceId( getInstanceId() );
View Full Code Here


           * We need to catch checked and unchecked exceptions here so we can create an ActionSequeceException with
           * contextual information, including the root cause. Allowing unchecked exceptions to pass through would
           * prevent valuable feedback in the log or response.
           */
        } catch ( Throwable ex ) {
          ActionDefinition actionDefinition = new ActionDefinition( (Element) actionDef.getNode(), null );
          throw new ActionValidationException( Messages.getInstance().getErrorString(
              "RuntimeContext.ERROR_0009_COULD_NOT_CREATE_COMPONENT", actionDef.getComponentName().trim() ), ex, //$NON-NLS-1$
              session.getName(), instanceId, getActionSequence().getSequenceName(), actionDefinition.getDescription(),
              actionDefinition.getComponentName() );
        }

        int validateResult = IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK;
        try {
          validateResult = component.validate();
View Full Code Here

    mqlAction.setOutputResultSet( "chartdata" ); //$NON-NLS-1$
    mqlAction.setComponentDefinition( "live", Boolean.TRUE.toString() ); //$NON-NLS-1$
    mqlAction.setComponentDefinition( "display-names", Boolean.FALSE.toString() ); //$NON-NLS-1$

    ActionDefinition pojoAction = (ActionDefinition) actionSequenceDocument.addAction( ActionDefinition.class );
    pojoAction.setComponentName( "ChartBeansComponent" ); //$NON-NLS-1$
    if ( contentLinkingTemplate != null ) {
      pojoAction.setComponentDefinition( "contentLinkingTemplate", contentLinkingTemplate );
    }
    pojoAction.setActionInputValue( "chart-model-json", chartModelJsonInput ); //$NON-NLS-1$
    pojoAction.addInput( "chartdata", RESULTSET_TYPE ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "chart-width", chartWidthInput ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "chart-height", chartHeightInput ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "series-column", seriesColumnInput ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "category-column", categoryColumnInput ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "value-column", valueColumnInput ); //$NON-NLS-1$
    pojoAction.setActionInputValue( "scaling-factor", scalingFactorInput ); //$NON-NLS-1$
    pojoAction.addOutput( "outputstream", CONTENT_TYPE ); //$NON-NLS-1$

    return actionSequenceDocument;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.actionsequence.dom.actions.ActionDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.