context.error(state, "NO_FLOW_ATTRIBUTE",
"Element 'subflow-state' requires unique '"
+ (context.isVersion1() ? "flow" : "subflow") + "' attribute");
}
else {
IState parentState = context.getStateFromParentState(state.getAttribute(state
.getNode(), "parent"));
if (parentState == null
|| (parentState instanceof ISubflowState && !StringUtils
.hasText(((ISubflowState) parentState).getFlow()))) {
context.error(state, "NO_FLOW_ATTRIBUTE",