Skip to main content
Version: 2.9

API

Enumerations

EnumerationDescription
AuthProtocol-
AuthState-
DirectionRelations are directed from A to B and can be followed in either direction.
GlobalPropertiesLabel of global properties used by convention through bricks and applications. Example of use:
OrderThe sorting order for a QueryPart.
PredefinedDataSourcePredefined data sources that can be used for Transaction.setSource.
ProbeTypeTypes of probe that can be used to check the health of the process: - LIVENESS: used to check if the process is alive - READINESS: used to check if the process is ready to operate - ALL: used to check both liveness and readiness
ServiceRequestTypeTypes of requests that can be received in a Service. This is used to know what method call on the request to answer the requester.

Classes

ClassDescription
ActionBrick-
AuthA static class that gathers all the required methods to handle the authentication and sessions with Olympe.
BooleanModelBooleanModel represents a PropertyModel for a boolean property of a data type.
BrickA CloudObject is the base class for all objects that can be persisted and exchanged between Olympe applications. In essence, it represents a remote reference to an object in the data cloud. It is identified by its unique ID, or tag. From a CloudObject you can access related CloudObjects.
BrickContextSoftcoded application context
BurstTransactionBurstTransactions are designed to continuously apply high rates of updates on properties (FIFO ordering). The only operation supported by BurstTransactions is to update properties of an instance.
Cache-
CloudObjectA CloudObject is the base class for all objects that can be persisted and exchanged between Olympe applications. In essence, it represents a remote reference to an object in the data cloud. It is identified by its unique ID, or tag. From a CloudObject you can access related CloudObjects.
Color-
ColorModelColorModel represents a PropertyModel for a color property of a data type.
Config-
ContextSoftcoded application context
DataResultA class representing the necessary operations to create the result of a query in the client database that emitted the query.
DataSourceRepresents a data source that can be used to retrieve, manipulate and store data outside the Olympe application environment. This class provides several methods for performing CRUD (create, read, update, delete) operations on data, as well as file upload and download functionality.
DatetimeModelDatetimeModel represents a PropertyModel for a datetime property of a data type.
EnumAn Enum is an ordered list of string key-values mappings
EnumValueAn EnumValue is a single value part of an Enum. It has a string name, a rank (its position in the Enum list).
ErrorFlowError type used to propagate errors through flows between bricks.
FileFile is the main class used to create business objects with a binary/string data content. It is a Data Type so can be extended and associated to a data source.
NumberModelNumberModel represents a PropertyModel for a number property of a data type.
PredicatePredicates are used to filter queries.
Process-
PropertyModelA property model defines a property of a data type. A property is defined by its type and the model it defines a property for.
QueryA Query is an immutable object used to build queries on the datacloud. It is a graph query builder. It starts from an origin InstanceOrTag (typically, the InstanceOrTag of a data type or of an instance). From there, it can follow relations between data types and filter results.
QueryResultA QueryResult is a list of key-value pairs that has been generated as a result of a Query. It contains the result of a query at a specific time.
QuerySingleA QuerySingle is a Query which follows relations that should be unique between data types (0..1 and 1..1 cardinalities). It returns the instance related to the origin, following the specified relation(s).
RelationModelA relation model defines a relation between two data types. It defines what data types is the origin and the destination of the relation.
ServiceA service that processes requests coming from other VMs connected to the data cloud.
ServiceRequestA request consumed by a service.
StringModelStringModel represents a PropertyModel for a string property of a data type.
ThemeTheme object describing the main visual properties used by components
TransactionTransactions are the unique way to apply a list of operations to the datacloud. A transaction can be merged into another transaction so that both are executed as a single set of operations.
TransactionResultA transaction result is the object received after a transaction has been executed successfully. It provides information about what has been done.
UserUser object for authentication purposes
VisualBrickA CloudObject is the base class for all objects that can be persisted and exchanged between Olympe applications. In essence, it represents a remote reference to an object in the data cloud. It is identified by its unique ID, or tag. From a CloudObject you can access related CloudObjects.
WorkflowA Workflow is a sequence of WorkflowState in which instances of a model goes through. WorkflowState are linked by WorkflowTransition that can have an optional process function. The Workflow also historize the WorkflowState of the instance and optionally serialize the object itself in a WorkflowObjectState.
WorkflowObjectStateA WorkflowObjectState represents the state of an instance at a certain point in time. It is automatically created when initializing a Workflow on an instance or when triggering a WorkflowTransition.
WorkflowStateA WorkflowState defines a state in a Workflow.
WorkflowTransitionA WorkflowTransition defines a transition between 2 WorkflowState. It has a direction (fromStateRel to toStateRel) and can have an optional process function. The process function (processRefProp) is automatically triggered when the transition occurs.

Interfaces

InterfaceDescription
HasTagThe HasTag interface defines objects that have a tag. The tag of these objects must be returned by the overridden method: getTag()
PropertyA property of a model defines an attribute. A property has a tag. Each instance of a model can have value for these defined properties.
QueryPartA part of a Query that specifies a relationship to traverse.
RelationRelations can be defined between from a CloudObject to another, for example between two data types. Relations are directed and have two types: the origin type, the destination type.
RelationConstructor-
RootQueryPartThe first part of a Query. It breaks down the starting point of the query.
ServiceConfig-
SubscriptionServiceConfig-

Type Aliases

Type AliasDescription
CacheStatus-
Class-
FollowRule-
ImplicitQueryOption-
InstanceOrTagA InstanceOrTag can be either a string, a HasTag (CloudObject instance, Property, Relation, ...) or the class constructor for a CloudObject
List-
OperationRepresents an operation that can be performed regarding data type instances.
ParsedPredicateDetails for a predicate from the OLYMPE query API
QueryOptions-
SourceWhen manipulating CloudObjects, sometimes it is required to manually set the data source of that object. Source determines where the object comes from: what data source is the owner of the object across the ecosystem.
SRPData-
TransactionOptionsAdditional options for transactions to be processed by a data source. - batch: if true, it means that the transaction has been executed using the () function.
UserToken-

Variables

VariableDescription
RelationGlobal variable, constructor of class Relation.

Functions

FunctionDescription
defineInverseRelationReturns a constant object corresponding to the specified relation going to the opposite direction
definePropertyCreate a constant property object which has the specified tag and type to be used in coded bricks.
defineRelationCreate a constant relation object between two specified DataTypes.
generateTagGenerates a unique olympe tag used to identify CloudObjects
registerRegister the class constructor as the class associated to the specified tag.
registerBrickStatic function that must be called for every brick used in an application. It registers the brick code in the registry with the specified tag and return the Entry for that brick.
tagToStringGet the unique identifier of the specified InstanceOrTag as a string