in ti/phase2/jars/core/src/java/org/apache/ti/compiler/internal/model/XWorkResultModel.java [61:114]
public void writeXML(XmlModelWriter xw, Element parentElement) {
assert _name != null;
Element resultElement = xw.addElement(parentElement, "result");
xw.addComment(resultElement, getComment());
resultElement.setAttribute("name", _name);
if (_navigateToType == NAVIGATE_TO_PAGE) {
resultElement.setAttribute("type", XWorkModuleConfigModel.NAVIGATE_TO_PAGE_RESULT);
addParam(xw, resultElement, "previousPageIndex", _navigateToPreviousIndex);
} else if (_navigateToType == NAVIGATE_TO_ACTION) {
resultElement.setAttribute("type", XWorkModuleConfigModel.NAVIGATE_TO_ACTION_RESULT);
addParam(xw, resultElement, "previousActionIndex", _navigateToPreviousIndex);
} else if (_returnAction != null) {
assert _path == null : _path;
resultElement.setAttribute("type", XWorkModuleConfigModel.RETURN_ACTION_RESULT);
} else {
assert _navigateToType == -1 : _navigateToType;
resultElement.setAttribute("type", XWorkModuleConfigModel.PATH_RESULT);
}
addParam(xw, resultElement, "location", _path);
if (_redirect) addParam(xw, resultElement, "redirect", _redirect);
//
// TODO: comment
//
if (_inheritedPath) addParam(xw, resultElement, "inheritedPath", true);
//
// "externalRedirect" is set using set-property, to indicate that the redirect
// is to another app.
//
if (_externalRedirect) addParam(xw, resultElement, "externalRedirect", true);
if (_hasExplicitRedirectValue) addParam(xw, resultElement, "hasExplicitRedirectValue", true);
if (_restoreQueryString) addParam(xw, resultElement, "restoreQueryString", true);
if (_actionOutputs != null && _actionOutputs.size() > 0) {
int n = _actionOutputs.size();
addParam(xw, resultElement, "actionOutputCount", Integer.toString(n));
for (int i = 0; i < n; ++i) {
ActionOutputModel pi = (ActionOutputModel) _actionOutputs.get(i);
String val = pi.getType() + '|' + pi.getNullable() + '|' + pi.getName();
addParam(xw, resultElement, "actionOutput" + i, val);
}
}
if (_returnAction != null) addParam(xw, resultElement, "returnAction", _returnAction);
if (_outputFormBeanType != null) addParam(xw, resultElement, "outputFormBeanType", _outputFormBeanType);
if (_outputFormBeanMember != null) addParam(xw, resultElement, "outputFormBeanMember", _outputFormBeanMember);
}