Package org.amplafi.flow

Examples of org.amplafi.flow.Flow


        ComponentTemplate ret = null;
        IComponentSpecification spec = component.getSpecification();
        boolean isFlowPage = FlowAwareSpecResolverDelegate.ID.equals(spec.getPublicId());
        if (isFlowPage || spec.getComponentClassName().equals(FullFlowComponent.class.getName())) {
            String type = spec.getDescription();
            Flow flow = flowDefinitionsManager.getFlowDefinition(type);
            // build the content for this full flow component
            String content;
            if (flow == null) {
                content = "<div>[Flow " + type + " not found]</div>";
            } else if ( CollectionUtils.isEmpty(flow.getActivities())) {
                content = "<div>[Flow " + type + " has no activites]</div>";
            } else {
                content = isFlowPage ?
                        createPageTemplate(flow, cycle, component.getNamespace(), component.getLocation()) :
                        createComponentTemplate(flow, cycle, component.getNamespace(), component.getLocation());
View Full Code Here


    /**
     * @see org.amplafi.flow.FlowDefinitionsManager#isFlowDefined(java.lang.String)
     */
    @Override
    public boolean isFlowDefined(String flowTypeName) {
        Flow flow = this.getFlowDefinitions().get(flowTypeName);
        return flow != null;
    }
View Full Code Here

            return null;
        }
        if ( this.getFlowTypeName().equals(morphingToFlowTypeName)) {
            return this.getCurrentPage();
        }
        Flow nextFlow = getFlowManagement().getInstanceFromDefinition(morphingToFlowTypeName);
        List<FlowActivityImplementor> originalFAs = getActivities();
        List<FlowActivityImplementor> nextFAs = nextFlow.getActivities();

        // make sure FAs in both the flows are in order
        boolean inOrder = areFlowActivitiesInOrder(originalFAs, nextFAs);
        if (!inOrder) {
            throw new IllegalStateException("The FlowActivities in the original and the morphed flow are not in order"
View Full Code Here

     */
    @SuppressWarnings("unchecked")
    @Override
    public <T> T get(FlowPropertyProvider flowPropertyProvider, FlowPropertyDefinition flowPropertyDefinition) {
        StringBuilder standardKey = new StringBuilder(standardPrefix);
        Flow flow = null;
        if(flowPropertyProvider instanceof FlowProvider) {
            flow = ((FlowProvider)flowPropertyProvider).getFlow();
        }
        if ( flow != null ) {
            String flowTypeName = flow.getFlowPropertyProviderName();
            standardKey.append("flow.").append(FlowUtils.INSTANCE.toLowerCase(flowTypeName)).append(".");
        }
        if (flowPropertyDefinition.getPropertyScope() == PropertyScope.activityLocal) {
            standardKey.append(FlowUtils.INSTANCE.toLowerCase(flowPropertyProvider.getFlowPropertyProviderName())).append(".");
        }
View Full Code Here

        return flowState == null ? null : (T) flowState.getCached(getFlowPropertyDefinition(key), this);
    }

    @Override
    public String toString() {
        Flow f = getFlow();
        if ( f != null ) {
            return f.getFlowPropertyProviderName()+"."+getFlowPropertyProviderName()+ " " +getClass()+" id="+super.toString();
        } else {
            return getFlowPropertyProviderName()+ " " +getClass()+" id="+super.toString();
        }
    }
View Full Code Here

            FlowPropertyProviderWithValues flowPropertyProvider = getFlowState();
            if ( flowPropertyProvider != null ) {
                linkTitle = flowPropertyProvider.getProperty(FSLINK_TEXT, String.class);
            }
            if ( isBlank(linkTitle) && this.flowManagement !=null) {
                Flow flow = getFlowManagement().getFlowDefinition(flowTypeName);
                linkTitle = flow.getLinkTitle();
            }
        }
        return linkTitle;
    }
View Full Code Here

TOP

Related Classes of org.amplafi.flow.Flow

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.