Package org.drools.runtime.rule.impl

Examples of org.drools.runtime.rule.impl.InternalAgenda


  public boolean evaluate(SplitInstance instance,
                            Connection connection,
                            Constraint constraint) {
        WorkflowProcessInstance processInstance = instance.getProcessInstance();
        InternalAgenda agenda = (InternalAgenda) ((ProcessInstance) processInstance).getKnowledgeRuntime().getAgenda();
        String rule = "RuleFlow-Split-" + processInstance.getProcessId() + "-" +
          ((Node) instance.getNode()).getUniqueId() + "-" +
          ((Node) connection.getTo()).getUniqueId() + "-" + connection.getToType();

        boolean isActive = agenda.isRuleActiveInRuleFlowGroup( "DROOLS_SYSTEM", rule, processInstance.getId() );
        return isActive;
    }
View Full Code Here


    return (DynamicNode) getNode();
  }
 
    public void internalTrigger(NodeInstance from, String type) {
      triggerEvent(ExtendedNodeImpl.EVENT_NODE_ENTER);
      InternalAgenda agenda =  (InternalAgenda) getProcessInstance().getKnowledgeRuntime().getAgenda();
      ((AgendaImpl) agenda).getAgenda().getRuleFlowGroup(getRuleFlowGroupName()).setAutoDeactivate(false);
      agenda.activateRuleFlowGroup(
      getRuleFlowGroupName(), getProcessInstance().getId(), getUniqueId());
//      if (getDynamicNode().isAutoComplete() && getNodeInstances(false).isEmpty()) {
//        triggerCompleted(NodeImpl.CONNECTION_DEFAULT_TYPE);
//      }
    }
View Full Code Here

TOP

Related Classes of org.drools.runtime.rule.impl.InternalAgenda

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.