JavaAPI Search for Use doesn't find Includes
search cancel

JavaAPI Search for Use doesn't find Includes

book

Article ID: 235029

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The Java API function setSearchUseOfObjects() can be used to 'search for use', however this does not always return all objects, while the same object can be found in AWI.

For instance, in AWI includes (JOBI) are searchable, in the JavaAPI this was not implemented

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

In AWI 'Search for Use' uses the REST API and the Lucene index, while the Java API searches directly in the database.

The Java API is therefore slow and not all object are searchable.

Resolution

Workaround:

Use the REST API in your Java API code through JREST (https://jrest.io/)