Standard Protocol and Query Protocol for Method Calling

Previous Next

Whenever you call a method of an external component from a USoft application, you can use the Standard Protocol or the Query Protocol.

With the Standard Protocol (the default protocol), what happens depends entirely on specifications within the external component itself.

When calling the method from a constraint, if you opt for the Query Protocol, the Rules Engine interprets the component's output value as follows. The component code must return one of these numerical values.

Value

Interpreted As

-1

Error

0

No record returned

1

Record returned

The error can be compared to a DBMS error in normal SELECT fetches.