congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RulesRepository.loadModuleByUUID
Code IndexAdd Tabnine to your IDE (free)

How to use
loadModuleByUUID
method
in
org.drools.repository.RulesRepository

Best Java code snippets using org.drools.repository.RulesRepository.loadModuleByUUID (Showing top 5 results out of 315)

origin: org.drools/guvnor-repository

            String newModuleName) {
try {
  ModuleItem itemOriginal = loadModuleByUUID(uuid);
  log.info("Renaming module: " + itemOriginal.getNode().getPath() + " to " + newModuleName);
  Node node = itemOriginal.getNode();
origin: org.chtijbug.drools/guvnor-repository

            String newModuleName) {
try {
  ModuleItem itemOriginal = loadModuleByUUID(uuid);
  log.info("Renaming module: " + itemOriginal.getNode().getPath() + " to " + newModuleName);
  Node node = itemOriginal.getNode();
origin: org.chtijbug.drools/guvnor-repository

@Test
public void testLoadRulePackageItemByUUID() throws Exception {
  ModuleItem rulePackageItem = getRepo().createModule("testLoadRuleRuleItemByUUID", "desc");
  String uuid = null;
    uuid = rulePackageItem.getNode().getUUID();
  rulePackageItem = getRepo().loadModuleByUUID(uuid);
  assertNotNull(rulePackageItem);
  assertEquals("testLoadRuleRuleItemByUUID", rulePackageItem.getName());
  // try loading rule package that was not created
  try {
    rulePackageItem = getRepo().loadModuleByUUID("01010101-0101-0101-0101-010101010101");
    fail("Exception not thrown loading rule package that was not created.");
  } catch (RulesRepositoryException e) {
    // that is OK!
    assertNotNull(e.getMessage());
  }
}
origin: org.chtijbug.drools/guvnor-repository

@Test
public void testRenamePackage() throws Exception {
  RulesRepository repo = getRepo();
  ModuleItem original = repo.createModule( "testRenamePackage",
                        "asset" );
  List packagesOriginal = iteratorToList( repo.listModules() );
  AssetItem item = repo.loadModule( "testRenamePackage" ).addAsset( "testRenameAssetSource",
                                    "desc" );
  item.updateContent( "la" );
  item.checkin( "" );
  String uuid = repo.renameModule( original.getUUID(),
                   "testRenamePackage2" );
  ModuleItem pkg = repo.loadModuleByUUID( uuid );
  assertEquals( "testRenamePackage2",
         pkg.getName() );
  List assets = iteratorToList( repo.loadModule( "testRenamePackage2" ).getAssets() );
  assertEquals( 1,
         assets.size() );
  item = (AssetItem) assets.get( 0 );
  assertEquals( "testRenameAssetSource",
         item.getName() );
  assertEquals( "la",
         item.getContent() );
  assertEquals( "testRenamePackage2",
         item.getModuleName() );
  List packageFinal = iteratorToList( repo.listModules() );
  assertEquals( packagesOriginal.size(),
         packageFinal.size() );
}
origin: org.chtijbug.drools/guvnor-repository

assertEquals("testPackageSnapshot", pkgLoaded.getName());
ModuleItem _pkgLoaded = repo.loadModuleByUUID( pkgLoaded.getUUID() );
assertNotNull(_pkgLoaded);
assertEquals(pkgLoaded.getCreatedDate(), _pkgLoaded.getCreatedDate());
org.drools.repositoryRulesRepositoryloadModuleByUUID

Javadoc

Similar to above. Loads a ModuleItem for the specified uuid.

Popular methods of RulesRepository

  • createModule
    Adds a module to the repository.
  • loadModule
    Loads a Module for the specified module name and version. Will throw an exception if the specified m
  • save
    Save any pending changes.
  • <init>
    This requires a JCR session be setup, and the repository be configured.
  • findAssetsByCategory
    This will retrieve a list of RuleItem objects - that are allocated to the provided category. Only th
  • findAssetsByName
    This will search assets, looking for matches against the name.
  • findAssetsByState
    Finds the AssetItem's linked to the requested state. Similar to finding by category.
  • getAreaNode
  • getSession
  • getState
    Gets a StateItem for the specified state name. If a node for the specified state does not yet exist,
  • listModuleSnapshots
    Return a list of the snapshots available for the given module name.
  • listModules
  • listModuleSnapshots,
  • listModules,
  • loadAssetByUUID,
  • loadCategory,
  • loadGlobalArea,
  • loadModuleSnapshot,
  • loadState,
  • addNodeIfNew,
  • checkForDataMigration

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JFileChooser (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best IntelliJ 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