Previous Next JavaScript must be enabled to correctly display this content

## 3.3.1 RSOV1

This topic describes the process to generate the data/resource segment type of maintenance service.

Here we can generate Master Type of data segment or child type of data segment.

- Master Type: This case is used when user wants to generate the complete flow from scratch. It will generate the new screen class code for the data segments.
- Child Type: This is primarily used when user wants to attach a single data-segment in the existing flow/process. Generally, this existing flow/process is available in the base product. We use the same screen class code from base and attach our data segment to it. To generate it please follow the below steps:
  1. Navigate to same extension_home folder using cmder
  2. Use the command obx service ds -c.

     Figure 3-11 OBX service ds - c

     Description of "Figure 3-11 OBX service ds - c"
  3. Once this command is fired, this will take you to next section where it will prompt other set of questions. Answer them accordingly to your setup and requirement.
  4. Select the type of component according to your requirement.

     Figure 3-12 Master Type Component

     Description of "Figure 3-12 Master Type Component"
  5. Once all the questions are answered and path of XDL is given, it will generate a folder inside the extension_home folder.

     Figure 3-13 Extension Home Folder

     Description of "Figure 3-13 Extension Home Folder"
  6. Select the option based on your requirement for question: Do you want to create a Data Segment for this service? (Y/n).
  7. For building the service, go into the service folder from cmder and run the command: gradle clean build.
  8. This will build the service and we can find the war of the service getting created inside the build/libs directory.

     Figure 3-14 Lib's Directory

     Description of "Figure 3-14 Lib's Directory"
  9. Use this service and deploy it in your environment.

Note:

- DB scripts for the service will be generated inside the folder: \extension_home\obxcustomerservice\src\main\resources\db
- Compile the Entity script in the entity schema created for extensions only.
- Service created as part of extension should be deployed in separate domain and should not be mixed or co-deployed with any other product specific services.
- Here Security Management System (SMS) scripts are also generated: \extension_home\obxcustomer-service\src\main\resources\db\sms.
- Execute the SMS script in sms schema, here we only generate the functional activity of service. Assigning to proper role should be done according to the steps mentioned in base application.
- Here along with SMS and Entity, CMC scripts are also generated under folder: \extension_home\obx-customer-service\src\main\resources\db\cmc.
- Execute them in the CMC schema.
- Screen Class and Data Segment has to be maintained from the UI which is present under common core.

Parent topic: Data/Resource Segment Sub Domain Service