Package org.drools.guvnor.client.decisiontable.analysis.action

Examples of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey


    }

    private ActionDetector buildActionDetector(GuidedDecisionTable52 model,
                                               ActionCol52 actionCol,
                                               DTCellValue52 realCellValue) {
        ActionDetectorKey key;
        if ( actionCol instanceof ActionSetFieldCol52 ) {
            key = new SetFieldColActionDetectorKey( (ActionSetFieldCol52) actionCol );
        } else if ( actionCol instanceof ActionInsertFactCol52 ) {
            key = new InsertFactActionDetectorKey( (ActionInsertFactCol52) actionCol );
        } else {
View Full Code Here


    public ActionDetector getActionDetector(ActionDetectorKey key) {
        return actionDetectorMap.get(key);
    }

    public void putOrMergeActionDetector(ActionDetector actionDetector) {
        ActionDetectorKey key = actionDetector.getKey();
        ActionDetector originalActionDetector = actionDetectorMap.get(key);
        ActionDetector mergedActionDetector;
        if (originalActionDetector == null) {
            mergedActionDetector = actionDetector;
        } else {
View Full Code Here

        }
    }

    private void detectMultipleValuesForOneAction(Analysis analysis) {
        for (Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet()) {
            ActionDetectorKey key = entry.getKey();
            ActionDetector actionDetector = entry.getValue();
            if (actionDetector.isMultipleValuesForOneAction()) {
                analysis.addMultipleValuesForOneAction("Multiple values for one action.");
            }
        }
View Full Code Here

        if (overlappingCondition) {
            boolean multipleValuesForOneAction = false;
            boolean duplicatedAction = false;

            for (Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet()) {
                ActionDetectorKey key = entry.getKey();
                ActionDetector actionDetector = entry.getValue();
                ActionDetector otherActionDetector = otherRowDetector.getActionDetector(key);
                // If 1 field is in both
                if (otherActionDetector != null) {
                    ActionDetector mergedActionDetector = actionDetector.merge(otherActionDetector);
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.decisiontable.analysis.action.ActionDetectorKey

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.