Package org.amplafi.flow

Examples of org.amplafi.flow.FlowValuesMap


     * @see org.amplafi.flow.FlowState#getExportedValuesMap()
     */
    @SuppressWarnings("unchecked")
    @Override
    public FlowValuesMap getExportedValuesMap() {
        FlowValuesMap valuesMap =exportProperties(false);
        return valuesMap;
    }
View Full Code Here


     * @param clearFrom removes the exported values from this's FlowValuesMap.
     * @return the exported values
     */
    @SuppressWarnings("unchecked")
    protected FlowValuesMap<? extends FlowValueMapKey, ? extends CharSequence> exportProperties(boolean clearFrom) {
        FlowValuesMap exportValueMap = createFlowValuesMapCopy();
        Map<String, FlowPropertyDefinition> propertyDefinitions = this.getFlow().getPropertyDefinitions();
        if (propertyDefinitions != null) {
            Collection<FlowPropertyDefinition> flowPropertyDefinitions = propertyDefinitions.values();
            exportProperties(exportValueMap, flowPropertyDefinitions, null, clearFrom);
        }
View Full Code Here

        String flowTypeName = flowTestingUtils.addFlowDefinition(flowActivity);
        FlowState flowState = flowTestingUtils.getFlowManagement().startFlowState(flowTypeName, false, null, null);
        flowState.setProperty("not-a-property", true);
        flowState.setProperty("testProp", true);
        flowState.finishFlow();
        FlowValuesMap exportedMap = flowState.getExportedValuesMap();
        assertEquals(exportedMap.get("testProp"), "true");
        assertFalse(exportedMap.containsKey("not-a-property"));
        assertEquals(exportedMap.size(), 1);
    }
View Full Code Here

TOP

Related Classes of org.amplafi.flow.FlowValuesMap

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.