i
Deyel SDK for Java
By using the Deyel SDK (Software Development Kit) Deyel incorporates the ease of developing advanced and integration rules that interact with the platform objects and developed applications, in an easy and intuitive way.
These rules can be developed in the advanced rules modeler in the case of those that require low code or when they are more complex in a Java IDE, inheriting all its advantages.
Tools to Develop Advanced Rules with SDK
Deyel SDK allows to use Deyel objects in advanced rules, by using one class with the model and another one with the object's service.
Model Class
The model class corresponds to the properties that each object has.
For example, the "Account (CRM_ACCOUNT)" form model class of the CRM application contains the Identifier, Company, Opening, Industry, Source and Status fields, among others. It also contains the getters and setters for each of these fields.
The model includes:
•Object constructor.
•Set of getters and setters for each object attribute.
•Getters for each object attribute for use in SQL shows, from the Deyel SDK.
•Internal classes if necessary. For example, the representation of iteratives for forms.
Service Class
A service class contains the operations to manage the model. For example, the service class of a form allows to perform the create, update, delete, query, and find operations.
The service class includes:
•CRUD (Create, Read, Update, Delete) of the object.
•Searches
•Specific methods to work on the model.
•A specific method for executing an SQL show on the model.
Each object service class has a common method available to initialize all objects
Operation |
Description |
Parameters |
---|---|---|
getAPIClient() |
Initializes the service to be able to use it. |
The service can also be initialized using a specific method that enables the management of its own connection to the database and the use of methods to execute the commit and rollback commands.
Operation |
Description |
Parameters |
---|---|---|
getOwnApiClient() |
Initializes the service and returns the API client of such service to be used in services that require managing their own connection to the database. |
|
ownConnectionCommit() |
Executes a commit command to the connected database so that the operations performed on the services of Deyel objects are applied. |
|
ownConnectionRollback() |
Executes a rollback command to the connected database. If an error occurs, it is used to cancel all operations performed on the services of Deyel environment. |
Interaction with Application Objects
In order to interact with Deyel objects from a Java IDE, the model and service classes corresponding to each object must be downloaded.
These classes are included when downloading the rule that interacts with such Deyelobjects, from the “Download” option available on the top toolbar of the rule modeler.
By using the model and service classes, Deyel SDK allows to use the following objects: