Tabnine Logo
RulesRepository.findAssetsByState
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.drools/guvnor-repository

/**
 * Finds the AssetItem's linked to the requested state. Similar to finding
 * by category.
 */
public AssetItemPageResult findAssetsByState(String stateName,
                       boolean seekArchivedAsset,
                       int skip,
                       int numRowsToReturn) throws RulesRepositoryException {
  return findAssetsByState(stateName,
      seekArchivedAsset,
      skip,
      numRowsToReturn,
      null);
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * Finds the AssetItem's linked to the requested state. Similar to finding
 * by category.
 */
public AssetItemPageResult findAssetsByState(String stateName,
                       boolean seekArchivedAsset,
                       int skip,
                       int numRowsToReturn) throws RulesRepositoryException {
  return findAssetsByState(stateName,
      seekArchivedAsset,
      skip,
      numRowsToReturn,
      null);
}
origin: org.chtijbug.drools/guvnor-repository

AssetItemPageResult apl = repo.findAssetsByState( "Draft",
                      false,
                      0,
origin: org.chtijbug.drools/guvnor-repository

@Test
public void testFindByState() throws Exception {
  RulesRepository repo = getRepo();
  ModuleItem pkg = repo.createModule( "testFindByStatePackage",
                     "heheheh" );
  AssetItem asset1 = pkg.addAsset( "asset1",
                   "" );
  AssetItem asset2 = pkg.addAsset( "asset2",
                   "" );
  repo.createState( "testFindByState" );
  repo.save();
  asset1.updateState( "testFindByState" );
  asset2.updateState( "testFindByState" );
  asset1.checkin( "" );
  asset2.checkin( "" );
  AssetItemPageResult result = repo.findAssetsByState( "testFindByState",
                         true,
                         0,
                         -1 );
  assertEquals( 2,
         result.assets.size() );
}
org.drools.repositoryRulesRepositoryfindAssetsByState

Javadoc

Finds the AssetItem's linked to the requested state. Similar to finding by category.

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.
  • 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
  • loadAssetByUUID
    Loads an asset by its UUID (generally the fastest way to load something).
  • listModules,
  • loadAssetByUUID,
  • loadCategory,
  • loadGlobalArea,
  • loadModuleByUUID,
  • loadModuleSnapshot,
  • loadState,
  • addNodeIfNew,
  • checkForDataMigration

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JLabel (javax.swing)
  • From CI to AI: The AI layer in your organization
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