Examples of FlowLauncher


Examples of org.amplafi.flow.launcher.FlowLauncher

        return values;
    }

    // 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.FlowLauncher

    /**
     * Checks to make sure that the FlowEntryPoint should be shown. Makes sure all needed values are provided.
     * @return true if {@link #getHidden()} != FALSE && {@link #getCondition()} != FALSE and there is a FlowTypeName or FlowLauncher.
     */
    public boolean isShowEntryPoint() {
        FlowLauncher flowLauncher = getActualFlowLauncher();
        if ( flowLauncher == null ) {
            // no valid FlowLauncher means cannot show flowEntry point.
            // perhaps we should throw exception - however this allows for the external code to have a method that supplies a flowLauncher conditionally.
            // otherwise we would require condition="ognl:flowLauncher != null" flowLauncher="ognl:flowLauncher"
            return false;
View Full Code Here

Examples of org.amplafi.flow.launcher.FlowLauncher

     * @return true if the current flow has the same flow type as the flow that this entry point would launch
     */
    @Cached
    public Boolean isSameAsActive() {
        FlowState flowState = getFlowManagement().getCurrentFlowState();
        FlowLauncher actualFlowLauncher = getActualFlowLauncher();
        if (flowState != null && actualFlowLauncher != null && flowState.getFlowTypeName().equals(actualFlowLauncher.getFlowTypeName())) {
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.FlowLauncher

        String label = getTitle();
        if ( isBlank(label)) {
            // <input type="submit" value="label"/>
            label = getValue();
        }
        FlowLauncher actualFlowLauncher = getActualFlowLauncher();
        if ( isBlank(label) && actualFlowLauncher != null ) {
            label = actualFlowLauncher.getLinkTitle();
        }
        if ( isBlank(label) ) {
            label = isBlank(getActualFlowTypeName())?"{no flow type}":"["+getActualFlowTypeName()+"]";
        }
        return processLabel(label, null);
View Full Code Here

Examples of org.amplafi.flow.launcher.FlowLauncher

        return lookupKeyOfFlowToFinish;
    }

    // HACK should probably not modify the parameters
    public Object[] getParameters() {
        FlowLauncher actualFlowLauncher = getActualFlowLauncher();
        return new Object[] {actualFlowLauncher, getFlowToFinish(), getValues()};
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.FlowLauncher

    @Cached(resetAfterRewind=true)
    public boolean isDynamic() {
        if ( isParameterBound("updateComponents") || isAsync() ) {
            return true;
        } else {
            FlowLauncher flowLauncher = getActualFlowLauncher();
            String flowTypeName = flowLauncher.getFlowTypeName();
            return this.getFlowManagement().getFlowDefinition(flowTypeName).getVisibleActivities().isEmpty();
        }
    }
View Full Code Here

Examples of org.amplafi.flow.launcher.FlowLauncher

        return transitionType;
    }

    public FlowLauncher getFlowLauncher(FlowState flowState) {
        FlowActivityImplementor flowActivity = flowState.getCurrentActivity();
        FlowLauncher flowLauncher = null;
        String resolvedNextFlow = flowActivity.resolveIndirectReference(getNextFlow());
        String resolvedNextFlowType = flowActivity.resolveIndirectReference(getNextFlowType());
        if ( isMorphingFlow()) {
            // HACK: Do not understand reason why an existing flow would morph to another existing flow
            // which is what passing resolvedNextFlow seems to imply.
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.