Table of Contents

Search

  1. Preface
  2. RulePoint Interfaces
  3. RulePoint Services
  4. Custom Service API
  5. Java Adapter for REST API
  6. RulePoint REST API
  7. Sample XML and JSON Requests and Responses
  8. RulePoint Pluggable Authentication Module
  9. HTTP Request and Response Attributes

Developer Guide

Developer Guide

Search API

Search API

You can use the search API to search for objects with a filter clause. The filter clause accepts the name of the property, operator, and one or more values of the property you want to search for. You can also specify the state and validity for each property. Add the additional flags for a property as enumerations in brackets in the same query.
To search for the deployment state in a query, you must can have an IN query and specify the list of all the values you want to search. The three values for the deployment states include DRAFT, NEEDS_DEPLOYMENT, and DEPLOYED.
For example, the following query creates a FilterClause that queries for objects with deployState either DEPLOYED or NEEDS_DEPLOYMENT:
FilterClause clause = new FilterClause("deployState", OPCODE.IN, "NEEDS_DEPLOYMENT", "DEPLOYED");
deployState is the name of the property, OPCODE.IN is the operator, and "NEEDS_DEPLOYMENT", and "DEPLOYED" are values of the property that you want to search.
You can also query date fields, such as lastModifiedDate or createDate. You must specify the date in the following format:
yyyy-MM-dd'T'HH:mm:ss.SSSZZ
The following list provides the common properties that you can query for all objects, with the enumerations in brackets. Specify the property in exact same case:
  • id
  • name
  • deployState(DRAFT, NEEDS_DEPLOYMENT, DEPLOYED)
  • createdBy
  • createDate
  • artifactType(topics, sources, connections, rules, templates, responders, analytics, watchlists, responses)
  • predefined (true/false)
  • valid (true/false)
  • lastModifiedBy
  • lastModifiedDate

0 COMMENTS

We’d like to hear from you!