FlowManagement fm = getFlowManagement();
if (isNotBlank(getNextFlowId())) {
FlowState possibleFlowState = fm.getFlowState(resolveIndirectReference(getNextFlowId()));
if ( possibleFlowState != null) {
nextFlowState = possibleFlowState;
fm.makeAfter(this.getFlowState(), possibleFlowState);
}
} else {
String flowType = resolveIndirectReference(getNextFlowType());
if (isBlank(flowType)) {
// why clear the FSNEXT_FLOW ?