Examples of ActionDefinition


Examples of org.emftrace.metamodel.RuleModel.ActionDefinition

         
          ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e3 = RuleModelFactory.eINSTANCE.createElementDefinition();
         
          ActionDefinition a = RuleModelFactory.eINSTANCE.createActionDefinition();
          a.setActionType(ActionType.CREATE_LINK);
         
          rule.getElements().add(e1);
          rule.getElements().add(e2);
          rule.getElements().add(e3);
         
View Full Code Here

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

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

           * 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

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

    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

Examples of org.qzerver.model.agent.action.providers.ActionDefinition

        throws ActionDefinitionMarshallerException
    {
        Preconditions.checkNotNull(actionDefinitionClass, "Action definition class is null");
        Preconditions.checkNotNull(definition, "Definition data array is null");

        ActionDefinition actionDefinition;
        try {
            actionDefinition = objectMapper.readValue(definition, actionDefinitionClass);
        } catch (IOException e) {
            String message = "Fail to unmarshall action definition for class " + actionDefinitionClass;
            throw new ActionDefinitionMarshallerException(message, e);
View Full Code Here

Examples of org.qzerver.model.agent.action.providers.ActionDefinition

        // Search for identifier
        ActionIdentifier actionIdentifier = ActionIdentifier.findByIdentifier(identifier);

        // Unmarshall action definition
        ActionDefinition actionDefinition;

        try {
            actionDefinition = actionDefinitionMarshaller.unmarshall(actionIdentifier.getActionDefinitionClass(),
                definition);
        } catch (ActionDefinitionMarshallerException e) {
View Full Code Here

Examples of org.resthub.web.springmvc.router.Router.ActionDefinition

    private Map<String, Object> attrMap = new HashMap<String, Object>();
       
    public void doTag() throws JspException, IOException, IllegalArgumentException {
        JspWriter out = getJspContext().getOut();

        ActionDefinition urlAction = Router.reverse(action, attrMap);
       
        out.println(urlAction);
    }
View Full Code Here

Examples of play.mvc.Router.ActionDefinition

   * @param name
   * @param args
   * @return
   */
  public static String jsRoute(String name, String... args) {
        final ActionDefinition action = urlMapper.lookupActionDefinition(name, args);
        StringBuffer sb = new StringBuffer();
        sb.append("{");
        if (action.args.isEmpty()) {
          sb.append("url: function() { return '" + action.url.replace("&amp;", "&") + "'; },");
        } else {
View Full Code Here

Examples of play.mvc.Router.ActionDefinition

   *            the runtime value of the parameters used to call the action,
   *            e.g. 123 from evaluating "post.previous().id"
   */
  @Override
  public String lookup(String actionString, Object[] params) {
    ActionDefinition ad = lookupActionDefinition(actionString, params);
    return ad.toString();
  }
View Full Code Here

Examples of play.mvc.Router.ActionDefinition

    return ad.toString();
  }

  public ActionDefinition lookupActionDefinition(String actionString,
      Object[] params) {
    ActionDefinition ad = new ActionBridge(false).invokeMethod(actionString, params);
    return ad;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.