Tabnine Logo
KieBaseModel
Code IndexAdd Tabnine to your IDE (free)

How to use
KieBaseModel
in
org.kie.builder.model

Best Java code snippets using org.kie.builder.model.KieBaseModel (Showing top 2 results out of 315)

origin: org.jbpm/jbpm-simulation

.setEqualsBehavior(EqualityBehaviorOption.EQUALITY)
.setEventProcessingMode(EventProcessingOption.STREAM);
.newKieSessionModel(id + ".KSession1")
.setType(KieSessionModel.KieSessionType.STATEFUL)
.setClockType(ClockTypeOption.get("pseudo"));
origin: org.jbpm/jbpm-simulation

public static ReleaseId createKJarWithMultipleResources(String id, String[] resourceFiles, ResourceType[] types) throws IOException {
  KieServices ks = KieServices.Factory.get();
  KieModuleModel kproj = ks.newKieModuleModel();
  KieFileSystem kfs = ks.newKieFileSystem();
  for (int i = 0; i < resourceFiles.length; i++) {            
    Resource resource = ResourceFactory.newClassPathResource(resourceFiles[i]);
    String res = readResourceContent(resource);
    String type = types[i].getDefaultExtension();
    kfs.write("src/main/resources/" + id.replaceAll("\\.", "/")
        + "/org/test/res" + i + "." + type, res);
  }
  KieBaseModel kBase1 = kproj.newKieBaseModel(id)
      .setEqualsBehavior(EqualityBehaviorOption.EQUALITY)
      .setEventProcessingMode(EventProcessingOption.STREAM);
  KieSessionModel ksession1 = kBase1
      .newKieSessionModel(id + ".KSession1")
      .setType(KieSessionModel.KieSessionType.STATEFUL)
      .setClockType(ClockTypeOption.get("pseudo"));
  kfs.writeKModuleXML(kproj.toXML());
  KieBuilder kieBuilder = ks.newKieBuilder(kfs).buildAll();
  assertTrue(kieBuilder.getResults().getMessages().isEmpty());
  KieModule kieModule = kieBuilder.getKieModule();
  return kieModule.getReleaseId();
}

org.kie.builder.modelKieBaseModel

Most used methods

  • newKieSessionModel
  • setEqualsBehavior
  • setEventProcessingMode

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now