Package org.drools.ruleflow.core

Examples of org.drools.ruleflow.core.MilestoneNode


                }
                if ( join.getTo() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.JOIN_WITHOUT_OUTGOING_CONNECTION, "name = " + join.getName() ) );
                }
            } else if ( node instanceof MilestoneNode ) {
                final MilestoneNode milestone = (MilestoneNode) node;
                if ( milestone.getFrom() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_NODE_WITHOUT_INCOMING_CONNECTIONS, "name = " + milestone.getName() ) );
                }

                if ( milestone.getTo() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_NODE_WITHOUT_OUTGOING_CONNECTIONS, "name = " + milestone.getName() ) );
                }
                if ( milestone.getConstraint() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_WITHOUT_CONSTRAINT, "name = " + milestone.getName() ) );
                }
            } else if ( node instanceof SubFlowNode ) {
                final SubFlowNode subFlow = (SubFlowNode) node;
                if ( subFlow.getFrom() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.SUBFLOW_NODE_WITHOUT_INCOMING_CONNECTIONS, "name = " + subFlow.getName() ) );
View Full Code Here


                 Connection connection = (Connection) iterator.next();
                 result += createSplitRule(process, connection, split.getConstraint(connection).getConstraint());
               }
             }
           } else if (nodes[i] instanceof MilestoneNode) {
             MilestoneNode milestone = (MilestoneNode) nodes[i];
             result += createMilestoneRule(process, milestone);
           }
        }
      }
      return result;
View Full Code Here

                 Connection connection = (Connection) iterator.next();
                 result += createSplitRule(process, connection, split.getConstraint(connection).getConstraint());
               }
             }
           } else if (nodes[i] instanceof MilestoneNode) {
             MilestoneNode milestone = (MilestoneNode) nodes[i];
             result += createMilestoneRule(process, milestone);
           }
        }
      }
      return result;
View Full Code Here

                }
                if ( join.getTo() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.JOIN_WITHOUT_OUTGOING_CONNECTION ) );
                }
            } else if ( node instanceof MilestoneNode ) {
                final MilestoneNode milestone = (MilestoneNode) node;
                if ( milestone.getFrom() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_NODE_WITHOUT_INCOMING_CONNECTIONS ) );
                }

                if ( milestone.getTo() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_NODE_WITHOUT_OUTGOING_CONNECTIONS ) );
                }
                if ( milestone.getConstraint() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.MILESTONE_WITHOUT_CONSTRAINT ) );
                }
            } else if ( node instanceof SubFlowNode ) {
                final SubFlowNode subFlow = (SubFlowNode) node;
                if ( subFlow.getFrom() == null ) {
View Full Code Here

TOP

Related Classes of org.drools.ruleflow.core.MilestoneNode

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.