Skip Headers
Oracle® Communications Network Integrity Developer's Guide
Release 7.1

Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Feedback page
Contact Us

Go to previous page
Go to next page
PDF · Mobi · ePub

18 Setting Conditions in Network Integrity

Oracle Design Studio is used to set conditions for processors used in action executions in Oracle Communications Network Integrity.

About Conditions

An action can contain conditions. By creating and applying conditions to processors, at run time you can dynamically control which processors should be executed inside an action based on the condition (whether true or false).Conditions are implemented as a Java class that implements the Condition Interface. When configuring a condition for an action, Design Studio code-generates the Condition Interface. The Studio designer then implements this Condition Interface.When a condition is configured and implemented, the condition can be applied to one or more processors. For each processor, the same condition can be set to be either true or false. One processor can also have multiple conditions applied. In this case, the processor are executed if all the conditions are true

To create conditions, see Network Integrity Studio Help.

To find out more information about the class generation and implementation, see:

To apply conditions to processors, see the following:

To import conditions, see the following:

About Generated Classes and the Implementation Class

When a condition is configured for an action, Design Studio code-generates two classes:

  • Condition Interface, which takes the name

  • Request, which takes the name

The generated classes are available at:



This directory also contains generated Action MDB and Controller classes.

The following is a sample generated condition interface which defines one method, checkCondition. In this sample, ValidDeviceRequest is the generated request class for the condition:

public interface ValidDeviceCondition {
    * @param context
    * @param request
    * @return @see boolean
    * @throws ProcessorException
  public boolean checkCondition(DiscoveryProcessorContext context,
             ValidDeviceRequest request) throws ProcessorException;

Design Studio also generates the skeleton implementation class for this condition interface. To open the Java editor and start the Java implementation, click the Implementation Class link.

Applying Conditions to Processors

You apply conditions to processors to control the execution flow of the processors inside the action.

To apply a condition to a processor, see Network Integrity Studio Help.

Multiple conditions can be applied to a processor, which means this processor is executed only if all the conditions are met. One condition can be applied to one or more processors, which means that same condition can be applied to multiple processors.

Importing Actions with Conditions

If an imported action contains conditions, these conditions are also replicated after importing. The imported conditions cannot be removed from the applied processor, which is also imported along with the action.

See "Adding an Existing Action" for information on importing an existing action to another action.

Figure 18-1 shows an example of an imported action, showing processors and associated conditions.

Figure 18-1 Importing an Action with Processors and Conditions

Shows import action with processors and conditions

In Figure 18-1, Processor2 is imported along with its two conditions:

  • ValidDevice

  • DemoCondition

These conditions are available to local processors, but cannot be removed. In this example, ValidDevice is selected, but the Remove button is disabled.

You can add a new condition to the imported processor. In this example, a new condition, DummyCondition, is added to Processor2. Any new condition added to the imported processor can be removed.

By adding new conditions to the imported processors, you can change the behavior of an imported action by using conditions to control whether an imported processor is executed.

Creating Condition Examples

This section outlines examples of setting conditions in Network Integrity:

Multi-Vendor Discovery

See "Multiple Vendor SNMP Discovery".

Multi-Protocol Discovery

See "Multiple Protocol Discoveries".