@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; }
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; }