For the developers who are working on or using Adobe® Data Services maybe already familar with Adobe® data modeling technology which is very popular and useful, it works with Data Services to accelerate the development of data-centric applications. And model-driven development involves the modeling of data types and services, and then generating code from the data model.
So here, we will lead you to a model-driven application developement trial based on our ADEP Application Use Case Samples – Model Driven Development with CRX.
Before starting, we need to introduce two items: resource and workflow. On ADEP, there are four kind of resources supported which can be seen in Flash Builder data model view, that is databases,content repository, SAP servers and destinations. In our samples, we choose the content repository.
Generally, the workflow for model-driven applications developing is to develop data model, generate code, then develop the client application. But the workflow varies slightly depending on the resources that to be represent in the data model, in our sample, as we choose the content repository as the resource, so the workflow is creating model, generating content repository nodes from model, then using generated code to develop client applications to interact with the resources. That is:
- Manually add entities and services to the model.
- Generate source code to develop client applications and server-side implementations.
- Deploy the model, client application, and server-side Java classes to the server
Now we start our trial which is very simple, you just need to follow the sample readme, access it, and locate the part “Developing your own application”, there are very detailed operations which you can follow.
Abstract of the operations for your reference:
- Prepare your environment
- Create Flex Project for ADEP Experience Services
- Create the data model
- create entity and properties
- save the model
- deploy the model
- Create client application
- display data using datagrid component
- add form to implement CRUD operations
- add association between different entities
- Run the application
For more information about how to develop model-driven applications, please refer to Develop model-driven applications.