Package org.amplafi.flow.validation

Examples of org.amplafi.flow.validation.ReportAllValidationResult.merge()


        FlowValidationResult flowValidationResult = new ReportAllValidationResult();
        // TODO : need to account for properties that earlier activities will create the property required by a later property.
        // we should look for PropertyUsage.create (and equivalents )
        for(FlowActivity flowActivity: this.getActivities()) {
            FlowValidationResult flowActivityValidationResult  = flowActivity.getFlowValidationResult(flowActivityPhase, flowStepDirection);
            flowValidationResult.merge(flowActivityValidationResult);
        }
        return flowValidationResult;
    }

    /**
 
View Full Code Here


    public void testMerge() {
        FlowValidationResult result = new ReportAllValidationResult(
            new MissingRequiredTracking("firstname"));

        FlowValidationResult result1 = new ReportAllValidationResult();
        result1.merge(result);
        assertFalse(result1.isValid());

    }
}
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.