| 
  
           
            
             
              Create a new data model in Workbench with database
by pointing to the appropriate datasource.
             
             
              In the Properties view, select the
              
               Generate LC Component
              
              and
              
               Deploy to LCDS
              
              options
in AEM forms tab
             
             
              Ensure that you select the Generate Service option in the
AEM forms tab in the properties view for all entities that you add
to the model.
             
             
              Save the data model and deploy the application.
             
             
              In the Applications view, open the process where you wish
to access the database.
             
             
              Select the Activity Picker and drag it on to a desired swimlane
in your process map.
             
             
              Define the activity with one of the new service operations
generated for your data model.
             
             
              In the Process Properties view, provide Input and Output
parameters for the activity.
             
             
              Connect the new activity box with other activities within
the process.
              
           |  |  |