Examples of OutputData


Examples of org.araneaframework.OutputData

  protected void process() throws Exception {}
  protected void render(OutputData output) throws Exception {}
 
  protected InputData getCurrentInput() {
    InputData input = super.getCurrentInput();
    OutputData output = super.getCurrentOutput();

    // lets try to give a not null answer to the user
    if (input == null && output != null) {
        return output.getCurrentInputData();
    }
   
    return super.getCurrentInput();
  }
View Full Code Here

Examples of org.araneaframework.OutputData

   
    return super.getCurrentInput();
  }
 
  protected OutputData getCurrentOutput() {
    OutputData output = super.getCurrentOutput();
    InputData input = super.getCurrentInput();
    if (output == null && input != null) {
      return input.getCurrentOutputData();
    }
   
View Full Code Here

Examples of org.araneaframework.OutputData

      throw new NoSuchNarrowableException(interfaceClass);
    return extension;
  }

  public OutputData getCurrentOutputData() {
    OutputData output = (OutputData)req.getAttribute(StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
    if (output == null)
      throw new NoCurrentOutputDataSetException("No OutputData set in the request.");
    else
      return output;
  }
View Full Code Here

Examples of org.araneaframework.OutputData

      return getWidgetFullIdFromContext(null, pageContext);
    }
 
  public static String getWidgetFullIdFromContext(String widgetId, PageContext pageContext) throws JspException {
    //Get widget id and view model from context
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
   
    //Widget name given
    if (widgetId != null)
      return NameUtil.getFullName(output.getScope().toString(), widgetId);
    //Current widget
    else
      return output.getScope().toString();
  }
View Full Code Here

Examples of org.easetech.easytest._1.OutputData

                    // Find the right place to put the data.
                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry outputEntry = new Entry();
                                outputEntry.setKey(ACTUAL_RESULT);
                                outputEntry.setValue(testRecord.get(ACTUAL_RESULT).toString());
                                outputData.getEntry().add(outputEntry);
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
                        }
View Full Code Here

Examples of org.easetech.easytest._1.OutputData

                    // Find the right place to put the data.
                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry outputEntry = new Entry();
                                outputEntry.setKey(ACTUAL_RESULT);
                                outputEntry.setValue(testRecord.get(ACTUAL_RESULT).toString());
                                Entry durationEntry = new Entry();
                                durationEntry.setKey(DURATION);
                                durationEntry.setValue(testRecord.get(DURATION).toString());
                                outputData.getEntry().add(outputEntry);
                                outputData.getEntry().add(durationEntry);
                                if(testRecord.get(TEST_STATUS) != null){
                                    Entry statusEntry = new Entry();
                                    statusEntry.setKey(TEST_STATUS);
                                    statusEntry.setValue(testRecord.get(TEST_STATUS).toString());
                                    outputData.getEntry().add(statusEntry);
                                }
                               
                               
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
                        }
                        if (outputDataAdded) {
                            break;
                        }
                    }
                }else{
                    //Method did not return any data. So only write the duration as output
                    for (TestMethod testMethod : inputTestData.getTestMethod()) {
                        List<TestRecord> originalTestRecords = testMethod.getTestRecord();
                        for (TestRecord originalTestRecord : originalTestRecords) {
                            if (originalTestRecord.getId().equals(testRecord.get(RECORD_POSITION))) {
                                OutputData outputData = new OutputData();
                                Entry durationEntry = new Entry();
                                durationEntry.setKey(DURATION);
                                durationEntry.setValue(testRecord.get(DURATION).toString());
                                outputData.getEntry().add(durationEntry);
                                originalTestRecord.setOutputData(outputData);
                                outputDataAdded = true;
                                break;
                            }
                        }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.OutputData

                tableOfOutputs.setElement(index, 0, labelName);
                TextFieldRepresentation textField = new TextFieldRepresentation();
                textField.setEventActions(asMapOfNull(textfieldActions, FBScript.class));
                textField.setWidth("200px");
                textField.setEffectClasses(textfieldEffects);
                OutputData data = new OutputData();
                data.setName(output.getName());
                data.setValue(output.getSourceExpresion());
                data.setMimeType("multipart/form-data");
                data.setFormatter(new Formatter() {
                    @Override
                    public Object format(Object object) {
                        return object;
                    }
                    @Override
View Full Code Here

Examples of org.jbpm.formapi.shared.api.OutputData

    }
   
    protected Map<String, OutputData> toOutputDataMap(List<TaskPropertyRef> outputs) {
        Map<String, OutputData> retval = new HashMap<String, OutputData>();
        for (TaskPropertyRef ref : outputs) {
            OutputData out = new OutputData();
            out.setName(ref.getName());
            retval.put(ref.getName(), out);
        }
        return retval;
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.OutputData

                    return new HashMap<String, Object>();
                }
            });
        }
        item.setInput(in);
        OutputData out = null;
        if (this.output != null) {
            out = new OutputData();
            out.setName(this.output.getName());
            out.setValue(this.output.getSourceExpresion());
            out.setMimeType("multipart/form-data");
            out.setFormatter(new Formatter() {
                @Override
                public Object format(Object object) {
                    return object;
                }
                @Override
View Full Code Here

Examples of org.jbpm.formapi.shared.api.OutputData

                            inputs.put(input.getName(), in);
                        }
                    }
                    if (event.getSelectedTask().getOutputs() != null) {
                        for (TaskPropertyRef output : event.getSelectedTask().getOutputs()) {
                            OutputData out = new OutputData();
                            out.setName(output.getName());
                            out.setValue(output.getSourceExpresion());
                            outputs.put(output.getName(), out);
                        }
                    }
                    dataSnapshot.put("newTaskInputs", inputs);
                    dataSnapshot.put("newTaskOutputs", outputs);
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.