Carsten Ziegeler wrote:
Do we have a solid contract for our flow context object?
The FlowContextHelper returns an object, so e.g. in the jxtg we
have something like:
if (contextObject instanceof Map) {
map.putAll((Map)contextObject);
} else if ( contextObject != null ) {
fillContext(contextObject, map);
}
to test whether the context is a map or a bean. Wouldn't it
be better/easier to require that the flow context is always a map?
sendPage and sendPageAndWait can return any object, so it would introduce back incompability. Even if I agree that it is somewhat clumsy I don't think that it is enough reason for breaking peoples code. So IMO we should keep it as is.
/Daniel
