示例#1
0
  @Override
  public int execute(FlowContext ctx) throws FlowExecutionException {

    FormBean formBean = (FormBean) ctx.get(IN_FORMBEAN);

    String message = "Hello: " + formBean.toString();

    ctx.put(OUT_MESSAGE, message);

    return NEXT;
  }
示例#2
0
  public int execute(FlowContext ctx) throws FlowExecutionException {

    String name = (String) ctx.get(IN_NAME);

    String message = "Hello ";

    if (name != null) {
      message += name;
    }

    ctx.put(OUT_MESSAGE, message);

    return NEXT;
  }