JavaScript Application Development API for Oracle Visual Builder Cloud Service - Classic Applications

Class: operation/js/api/Operation

An API object representing a single data operation.

This object is useful for both roles, ABCS Business User and ABCS Developer.

  • ABCS Developer needs to produce Operation instances to make his custom custom Business Object Provider (BOP) useful.
  • ABCS Business User consumes these Operation instances and performs the operation using Operation.perform(..) method.

Version:
  • 17.1.1
Source:
See:
Returns:
Type
Operation

Members

Methods

perform() → {Promise.<operation/js/api/OperationResult>}

stable API

Performs this operation.

Each Operation.perform(..) method call returns an instance of OperationResult. It either:

  • Provides returned data in case Operation perform correctly.
    It also can contain any other metadata which Business Object Provider decides to return. For example PaginationCursor can be available if the perfomed Operation has type Operation.Type.READ_MANY set and provider implemented capability to paginate through the resulted records.
  • Provides error code, message and possibly any other additional error information in case Operation performed incorrectly.
To check the result of Operation.perform(..) call, you can use:

Version:
  • 15.4.5
Source:
See:
Returns:
Type
Promise.<operation/js/api/OperationResult>