Package org.amplafi.flow

Examples of org.amplafi.flow.FlowTransition


                    iterator.remove();
                }
            }
        } else {
            // find the normal finish and put that first
            FlowTransition defaultTransition = null;
            for(Iterator<FlowTransition> iterator = transitions.iterator(); iterator.hasNext();) {
                FlowTransition transition = iterator.next();
                if ( transition.getTransitionType() == TransitionType.normal) {
                    iterator.remove();
                    defaultTransition = transition;
                    break;
                }
            }
            if ( defaultTransition == null) {
                defaultTransition = new FlowTransition(null, DEFAULT_FSFINISH_TEXT, TransitionType.normal, null);
            }
            transitions.add(0, defaultTransition);
        }
        return transitions;
    }
View Full Code Here


            getFlowResultHandler().handleFlowResult(result, this);
        }
    }

    public void onOneAlternateFlow(IRequestCycle cycle) {
        FlowTransition flowTransition = getFlowTransitions().get(0);
        onAltFinish(cycle, flowTransition);
    }
View Full Code Here

        FlowTransition flowTransition = getFlowTransitions().get(0);
        onAltFinish(cycle, flowTransition);
    }

    public void onMultipleAlternateFlow(IRequestCycle cycle) {
        FlowTransition flowTransition = getFlowTransition();
        onAltFinish(cycle, flowTransition);
    }
View Full Code Here

    public FlowState transitionToFlowState(FlowState flowState, String key) {
        FlowState nextFlowState = null;
        Map<String, FlowTransition> transitions = flowState.getProperty(key, Map.class);
        String finishKey = flowState.getFinishKey();
        if ( isNotEmpty(transitions) && isNotBlank(finishKey)) {
            FlowTransition flowTransition = transitions.get(finishKey);
            if ( flowTransition != null ) {
                FlowActivityImplementor currentActivity = flowState.getCurrentActivity();
                String flowType = currentActivity.resolveIndirectReference(flowTransition.getNextFlowType());
                if (isNotBlank(flowType)) {
                    nextFlowState = this.createFlowState(flowType, flowState.getExportedValuesMap(), false);
                    FlowUtils.INSTANCE.copyMapToFlowState(nextFlowState, flowTransition.getInitialValues());
                }
            }
        }
        return nextFlowState;
    }
View Full Code Here

//                    this.setFsFlowTransitionLabel(this.getFlowManagement().getFlowDefinition(getNextFlowType()).getLinkTitle());
//                }
//            }
            // HACK should really have FlowTransitions return a getFlowLauncher()
            this.handleFlowPropertyValueProvider(FSFLOW_TRANSITIONS,
                new AddToMapFlowPropertyValueProvider<FlowPropertyProvider, String, FlowTransition>(new FlowTransition(getFinishKey(), null, getFsFlowTransitionLabel(), transitionType, null)));
        }
    }
View Full Code Here

TOP

Related Classes of org.amplafi.flow.FlowTransition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.