Package org.openiaml.model.drools

Examples of org.openiaml.model.drools.DroolsInferenceEngine.create()


   *
   * @throws InferenceException
   */
  public void refreshMappings(EObject resolved, ICreateElementsFactory handler, IProgressMonitor monitor) throws InferenceException {
    DroolsInferenceEngine engine = getEngine(handler);
    engine.create(resolved, new SubProgressMonitor(monitor, 100));
  }
 
  /**
   * Wrap the mapping refresh action with monitor updates, and check
   * that the selected type resolves to the correct object type.
View Full Code Here


      CreateElementsWithinContainer handler, IProgressMonitor monitor) throws InferenceException {
    monitor.beginTask("Inferring contained elements", 150);
   
    // infer like normal...
    DroolsInferenceEngine engine = getEngine(handler);
    engine.create(root, new SubProgressMonitor(monitor, 100));
   
    // but our handler will remove any incorrect elements
    monitor.subTask("Removing uncontained elements");
    handler.removeUncontainedElements(engine, new SubProgressMonitor(monitor, 50));
   
View Full Code Here

    monitor.worked(10);

    // do inference on the model
    monitor.subTask("Perfoming inference");
    DroolsInferenceEngine ce = getEngine(new EcoreInferenceHandlerFactory());
    ce.create(model, new SubProgressMonitor(monitor, 45));

    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;

    monitor.subTask("Writing to temporary file");
View Full Code Here

    DroolsInferenceEngine ce = action.getEngine(new EcoreInferenceHandlerFactory());
    monitor.worked(10);

    // do inference
    monitor.subTask("Executing model completion");
    ce.create(target, new SubProgressMonitor(monitor, 80));
   
    // return
    return target;
  }
 
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.