Skip to content

Latest commit

 

History

History

ex2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Exercise 2 - Create Data Model & Service with Joule

In this exercise, we will create a risk management application, helps organizations identify, assess, and track risks, while implementing mitigation strategies to minimize their impact.

Exercise 2.1 Generate data model

  1. Click on Guide Center and select Generate AI-Powered Development


  1. Go to Data Model & Service Creation and Click on Open Joule


  1. Your digital assistant Joule is now ready to use.


  1. Copy the below text to your joule assistant to generate the data model and services.
Create a risk management app with risks and mitigations. Each risk may refer to one or more mitigations. Add realistic properties to each entity, risks should include a property impact and criticality which should be an integer. Impacts should be in range of 1 to 20000 dollars. Mitigation should include a counter
  1. You will now see the suggested data model as per the prompt given to the Joule.


  1. You can now choose to accept it and the changes are reflected in the staging files shown.


  1. Go to Project Explorer > Storyboard and you will see the newly generated data model and services.


  1. You can also go to the explorer and see the files i.e schema.cds and service.cds


2.2 Add Sample Data using Joule

  1. Go to guided development and type the prompt as shown below.
Generate sample data. for risks and mitigations

` 2. Accept the data and you can see 2 csv files in the project test folder.

alt text

  1. Go to Data editor and review the data.

Summary

Joule lets you create CAP-based data entities and OData services with contextual sample data with just one text prompt.

Continue to - Exercise 3 - Add Application Logic