Definitions
Data Types
Data in Velosimo is organized into Data Types which can be managed using flows, algorithms, translators and more.
There are three categories of Data Types:
- JSON Types
- Files Types
- System Types
JSON Types
The JSON Data Types correspond to a JSON Schema.
To learn more about JSON Schema visit this page http://json-schema.org/
Browse JSON Data Types
Within the connect.velosimo.io platform, use the carrot next to Velosimo name in the top left to access Data -> Definitions
For JSON based Data Types, select that category from the Dashboard or the left navigation menu:
When viewing the list of Data Types available in the tenant, a user can filter them by name using the quick filter at the top of the page:
Using the three dot menu on the right side of each row a user can view the data for each data type by selecting "Records" from the options. In addition to viewing the data, a user can take action against the Data Type configuration. Some of the common actions are highlighted below.
Add New JSON Type
The following screens illustrate the details of adding a new JSON Type to the Connect Platform
New JSON Type Field details:
Field Name | Definition |
---|---|
Before Save Callbacks | Platform users can define algorithms that will be executed before save a record of this data type in a flow process. |
Records methods | Platform users can define algorithms linked to some attributes of the records created of the data type. Is like a method for an specific attribute, and it could be execute in a code of your integration. |
Data type methods | Platform users can define algorithms linked to some attributes of the records created of the data type. Is like a method for an specific attribute, and it could be execute in a code of your integration. |
How to call JSON Type with code
Wherever you are in Velosimo, you can call the data_type definition by way:
Cenit.namespace('A').data_type('B')
If you want access to a record, you can use:
object = Cenit.namespace('A').data_type('B').where(query).first
where (query) is a hash with parameters of a query, ex: .where(name: 'photo', id: '123')
To obtain all records you can use:
objects = Cenit.namespace('A').data_type('B').where(query).all
To save a data_type:
Cenit.namespace('A').data_type('B').create_from_json!(data.to_json)
File Types
determine content needed
System Types
Determine content needed
Updated almost 3 years ago