Examples of StartFromDefinitionFlowLauncher


Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

    private List<FlowLauncher> flows;
    private Messages messages;
    public FlowLauncherPropertySelectionModel(FlowManagement flowManagement, Messages messages, String... flowTypeNames) {
        flows = new ArrayList<FlowLauncher>(flowTypeNames.length);
        for(String flowTypeName: flowTypeNames) {
            flows.add(new StartFromDefinitionFlowLauncher(flowTypeName, flowManagement));
        }
        this.messages = messages;
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

        this.messages = messages;
    }
    public FlowLauncherPropertySelectionModel(FlowManagement flowManagement, Map<String, String>defaultInitialState, Messages messages, String... flowTypeNames) {
        flows = new ArrayList<FlowLauncher>(flowTypeNames.length);
        for(String flowTypeName: flowTypeNames) {
            flows.add(new StartFromDefinitionFlowLauncher(flowTypeName, defaultInitialState, flowManagement));
        }
        this.messages = messages;
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

            displayed.addAll(getFlows());
        }
        List<String> ftNames = getFlowTypeNames();
        if ( !CollectionUtils.isEmpty(ftNames)) {
            for(String flowTypeName: ftNames) {
                StartFromDefinitionFlowLauncher definition =
                    new StartFromDefinitionFlowLauncher(flowTypeName, null, getFlowManagement());
                displayed.add(definition);
            }
        }
        return displayed;
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

                flow = null;
            } else if ( flow == null && isShouldAutoStart() ) {
                // no flows on this page are active. This FullFlowComponent is an autoStart so it should do its thing and start.
                // TODO: by default autoStart should clear all existing flows ( problem if we want to always have a flow active )
                getFlowManagement().getLog().debug("Auto starting "+getFlowName()+" on page "+getPage().getPageName()+" activeflows="+getFlowManagement().getFlowStates());
                StartFromDefinitionFlowLauncher flowLauncher = new StartFromDefinitionFlowLauncher(getFlowName(), null, getFlowManagement(), getFlowName(), getContainer(), getInitialValues());
                try {
                    flow = flowLauncher.call();
                } catch (FlowValidationException e) {
//                    getFlowResultHandler().handleValidationTrackings(e.getTrackings(), this);
                    return null;
                }
            }
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

    // only called when rendering ... not from the listener.
    public FlowLauncher getActualFlowLauncher() {
        FlowLauncher launcher = getFlowLauncher();

        if ( launcher == null && StringUtils.isNotBlank(getActualFlowTypeName())) {
            launcher = new StartFromDefinitionFlowLauncher(getActualFlowTypeName(), null, getFlowManagement(), null, getContainer(), getValues());
        }
        if ( launcher != null ) {
            launcher.setReturnToFlow(getReturnFlowLookupKey());
        }
        return launcher;
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher

            flowLauncher = new MorphFlowLauncher(resolvedNextFlowType, resolvedNextFlow, flowState.getFlowManagement());
        } else if ( resolvedNextFlow != null) {
            FlowState resolvedNextFlowState = flowState.getFlowManagement().getFlowState(resolvedNextFlow);
            flowLauncher = new ContinueFlowLauncher(resolvedNextFlowState, flowState.getFlowManagement());
        } else if ( resolvedNextFlowType != null) {
            flowLauncher = new StartFromDefinitionFlowLauncher(resolvedNextFlowType, flowState.getFlowManagement());
        }
        return flowLauncher;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.