Skip Headers

Agile Recipe Management for Pharmaceuticals Import/Export Guide Release 9.3.3 E39291-01 |
| Contents

Previous |

# 6 Scenario Examples

This chapter provides additional information about exporting and importing data from/to RMW, with examples. Complete the configuration steps outlined in Configuring Export Import Tool before you use the scenario examples to export or import information.

## 6.1 Views

To insert, update or delete views from the RMW application, use View schema files.

Note When using the View schema file to import views, only view information along with attribute and other details will be imported. Related or parent categories and other references will not be imported. These reference records should be imported separately prior to view import.

Template files:

Criteria file: view_criteria.xml

Schema file: view_schema.xml

Properties file: view_criteria.properties

### 6.1.1 Using Search Attributes to Export Views

You can use the following search attributes to export a view, as described here.

- View Name: Provide the Web service ID for search attribute $$_VIEW_NAME. For example, $$_VIEW_NAME=Alertsearchview

- Owner Category Name: To export all views that belong to this category. Provide the service name for search attribute $$_CATEGORY_NAME. For example, $$_CATEGORY_NAME=AlertDefinition

### 6.1.2 Inserting New Views

To insert view(s) to the RMW application, the view(s) should be exported from the source RMW application and imported to the destination RMW application in insert mode.

#### 6.1.2.1 Step 1: Export existing view from the source

1. Open the view_criteria.properties file present in the migration/templates/criteriaproperties folder.

2. Specify the search attribute values to export the records.

3. Check the preceding section for using different search attributes.

4. Export the records using following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/view_criteria.xml -o <migration_home>/alertsearchview.xml

#### 6.1.2.2 Step 2: Import export view to the destination RMW application

1. To import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertsearchview.xml -op INS

#### 6.1.2.3 Step 3: Verify the imported view through RMW Web user interface Meta model UI

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > View > Manage.

4. Provide the view name as search criteria in the View Name column.

5. Click the Search button.

6. Check if the imported view is displayed in the search result.

7. Click on the view name to verify the view details.

#### 6.1.2.4 Step 4: Check the imported view through RMW Web user interface Library module

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration> Library > Manage Record.

4. Click the Browse tab.

5. Select category Base > Meta Model Folder > View.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export.

8. Search for the record and verify the imported records shown in the search result window.

9. Click on the view link to verify the details.

### 6.1.3 Updating Views

To update existing views in the RMW application, the views should be exported from the source RMW application and imported to the destination RMW application in update mode.

#### 6.1.3.1 Step 1: Export existing View (s) from source RMW application

1. Open the views_criteria.properties file.

2. Specify the search attribute values to export records.

3. Check the preceding section for using different search attributes.

4. Export the records using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/view_criteria.xml -o <migration_home>/alertsearchview.xml

#### 6.1.3.2 Step 2: Import exported view to the destination

1. 1. Import the exported views using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/alertsearchview.xml -op UPD

#### 6.1.3.3 Step 3: Verify the view Import through RMW Web user interface Meta Model UI

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > View > Manage.

4. Provide the view name as search criteria in the View Name column.

5. Click the Search button.

6. Check if the imported view is displayed in the search result.

7. Click on the view name to verify the view details.

#### 6.1.3.4 Check the imported view through RMW Web user interface library module

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base > Meta Model > Folder View.

6. Click the Search tab.

7. Provide the required search criteria; you can use the similar criteria values used for export.

8. Search for the record and verify the imported records shown in the search result window.

9. Click on the view link to verify the details.

### 6.1.4 Deleting Views

To delete existing view(s) in the RMW application, the view(s) should be first exported from the RMW application and then imported to the RMW application in delete mode.

#### 6.1.4.1 Step 1: Export existing view(s) from source RMW application

1. Open the views_criteria.properties file.

2. Specify the search attribute values to export records.

3. Check the preceding section for using different search attributes.

4. Export the records using following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/view_criteria.xml -o <migration_home>/alertsearchview.xml

#### 6.1.4.2 Step 2: Import the exported views to the destination RMW application

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/alertsearchview.xml -op DEL

#### 6.1.4.3 Step 3: Verify the deleted view import through RMW Web user interface Meta model UI

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > View > Manage.

4. Provide the view name as search criteria in the View Name column.

5. Click the Search button.

6. Check if the imported view not is displayed in the search result window.

#### 6.1.4.4 Step 4: Check the imported view through RMW Web user interface Library module

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base > Meta Model > Folder View.

6. Click the Search tab.

7. Provide the required search criteria; you can use typical criteria values used for export.

8. Search for the record and verify the imported records shown in the search result window.

9. Click on the view link to verify the details.

## 6.2 View Attributes

View attribute template files are used to insert, update or delete view attributes for a view. When using view attribute schema only view attributes details are exported or imported. Referencing view or category attributes are imported separately and available prior to view attribute import.

Template files:

Criteria file: viewattribute_criteria.xml

Schema file: viewattribute_schema.xml

Properties file: viewattribute_criteria.properties

### 6.2.1 Using Search Attributes to Export Views

You can use the following search attributes to export a view name, as described here.

- View Name: Provide the Web service ID for search attribute $$_VIEW_NAME. For example, $$_VIEW_NAME=Alertsearchview

- View Attribute Name: Provide the service name for search attribute $$_VIEW_ATTR_NAME. For example, $$_VIEW_ATTR_NAME=AlertName

### 6.2.2 Adding Additional Attributes to Existing Views

To insert view attribute(s) to the RMW application, the view attribute(s) should be exported from the source RMW application and imported to the destination RMW application in insert mode.

#### 6.2.2.1 Step 1: Export existing view attribute(s) from source RMW application

1. Open the viewattribute_criteria.properties file.

2. Specify the search attribute values to export records.

3. Check the preceding section for using different search attributes.

4. Export the records using following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/viewattribute_criteria.xml -o <migration_home>/alertsearchviewattributes.xml

#### 6.2.2.2 Step 2: Import the exported view attributes to destination RMW application

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/alertsearchviewattributes.xml -op INS

#### 6.2.2.3 Step 3: Check the imported view attributes through RMW Web user Meta model UI

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > View > Manage.

4. Provide the view name as search criteria in the View Name column. Click the Search button.

5. Check if the imported view is displayed in the search result.

6. Click on the view name to view the search and result attribute used in the view.

7. Click on the respective tab to view the view attributes details.

#### 6.2.2.4 Step 4: Check the imported view attributes through RMW Web user interface Library module.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials and Database as Development.

3. Navigate to Administration> Library > Manage Record.

4. Click the Browse tab.

5. Select category Base > Meta Model Folder > View Attribute.

6. Click the Search tab.

7. Provide the required search criteria, you can use the typical criteria values used for export.

8. Search for the record and verify the imported records shown in the search result window.

### 6.2.3 Updating Existing View Attributes

To update view attribute(s) to the RMW application, the view attribute(s) should be exported from the source RMW application and imported to the destination RMW application in update mode.

#### 6.2.3.1 Step 1: Export existing view attribute(s) form source RMW application.

1. Open the viewattribute_criteria.properties file.

2. Specify the search attribute values to export records.

3. Check the preceding section for using different search attributes.

4. Export the records using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/viewattribute_criteria.xml -o <migration_home>/alertsearchviewattributes.xml

#### 6.2.3.2 Step 2: Import exported view attributes to the destination RMW application

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/alertsearchviewattributes.xml -op UPD

#### 6.2.3.3 Step 3: Verify the imported view attributes through RMW Web user interface UI

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials and Database as Development.

3. Navigate to Administration > Setup >e Meta model > View > Manage.

4. Provide the view name as search criteria in the View Name column.

5. Click the Search button.

6. Check if the imported view is displayed in the search result.

7. Click on the view name to view the view details.

8. Click on the respective tab to view the view attributes details.

#### 6.2.3.4 Step 6: Check the imported view attributes through RMW Web user interface Library module.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials and Database as Development.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base > Meta Model Folder > View Attribute.

6. Click the Search tab.

7. Provide the required search criteria, you can use typical criteria values used for export.

8. Search for the record and verify the imported records shown in the search result window.

### 6.2.4 Deleting Existing View Attributes From Views

To delete existing view attribute(s) to RMW application, the view attribute(s) should be imported to destination the RMW application in delete mode.

#### 6.2.4.1 Step 1: Export existing view attribute(s) form source RMW application.

1. Open the viewattribute_criteria.properties file.

2. Specify the search attribute values to export records.

3. Check the preceding section for using different search attributes.

4. Export the records using following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/viewattribute_criteria.xml -o <migration_home>/alertsearchviewattributes.xml

#### 6.2.4.2 Step 2: Import exported view attributes to the destination RMW application

Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/alertsearchviewattributes.xml -op DEL

#### 6.2.4.3 Step 3: Check the imported view attributes through RMW Web user Meta model UI

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials and Database as Development.

3. Navigate to Administration > Setup > Meta model > View > Manage.

4. Provide the view name as search criteria in the 'View Name' column. Hit the search button.

5. Check if the imported view is displayed in the search result.

6. Click on the view name to view the search and result attribute used in the view.

7. Click on the respective tab to view the view attributes details.

8. Verify the deleted attribute removed from the view.

#### 6.2.4.4 Step 4: Check the imported view attributes through RMW Web user interface Library module.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration> Library > Manage Record.

4. Click the Browse tab.

5. Select category Base>MetaModelFolder>ViewAttribute and click the Search tab.

6. Provide the required search criteria, you can use the similar criteria values used for export.

7. Search for the record and verify the imported records are not shown in the search result window.

## 6.3 Categories

Using the category schema, refer table Business Objects and related templates to find the files related to the category.

<TBD>

### 6.3.1 Inserting a New Category

You can export an existing category from one RMW application (source) to another RMW application (destination). The example shows how to export the category Alert Definition from the source RMW application to the destination RMW application.

#### 6.3.1.1 Step 1: Export existing category from the source.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Open the category_criteria.properties file.

3. Specify values for any of the search attributes to export the category.

4. Export category using category name.

Provide the category name using $$_CAT_NAME=property. For example, $$_CAT_NAME=AlertDefinition

1. Export the category using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/category_criteria.xml -o <output file location>/alertdefinition.xml

#### 6.3.1.2 Step 2: Import exported category to the destination.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Use the following command to import the category to the destination:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition.xml -op INS

#### 6.3.1.3 Step 3: Verify the category import through RMW Web user interface.

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > Category > Manage.

4. Provide the category name as search criteria in the Name column.

5. Click the Search button.

6. Check if the imported category is displayed in the search result.

### 6.3.2 Updating an Existing Category

The example shows how to export the category 'Alert Definition' from the source RMW application, after making some modification to the existing category and importing the same category to the destination RMW application.

#### 6.3.2.1 Step 1: Export existing Category from the source.

Refer the preceding section on how to export category.

#### 6.3.2.2 Step 2: Import exported category to the destination.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Use the following command to import the category to the destination.

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition.xml -op UPD

#### 6.3.2.3 Step 3: Verify the category import through RMW Web user interface.

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > Category > Manage.

4. Provide the category name as search criteria in the Name column.

5. Click the Search button.

6. Check if the imported category is displayed in the search result.

7. Click on the category name to view the view details.

8. Check the category details for the changes you have made.

9. Refresh the cache if you do not see the changes. Refer the cache refresh section to see how to refresh the cache.

### 6.3.3 Deleting an Existing Category

This example depicts deleting the category Alert Definition from the destination RMW application.

#### 6.3.3.1 Step 1: Export existing category from the source.

Refer the preceding section on how to export a category.

#### 6.3.3.2 Step 2: Import exported category to the destination.

Use the following command to import the category to the destination:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition.xml -op DEL

#### 6.3.3.3 Step 3: Verify the category import through RMW Web user interface.

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > Category > Manage.

4. Provide the view name as search criteria in the Name column.

5. Click the Search button. The deleted category will not be displayed in the search result.

### 6.3.4 Adding Additional Attributes To Existing Categories

Using the Category Attribute schema refer the table Business Objects and related templates to find the files related to Category Attribute.

Exporting category attributes of an existing category from one RMW application to importing these attributes to the same category in another RMW application. The same category should exist in both the application. Assume these additional attributes are not available in the destination RMW application category.

#### 6.3.4.1 Step 1: Export category attributes.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Open the categoryattribute_criteria.properties file.

3. Specify value for any of the search attribute to export the view attribute.

4. Export category attributes using category name.

Provide the category name using $$_OWNER_CAT_NAME=property. For example, $$_OWNER_CAT_NAME=AlertDefinition

1. Export category attribute using attribute label.

Provide category name using $$_ATTR_LABEL=property. For example, $$_ATTR_LABEL==AlertName

1. Export the category attributes using the following command:

<migration_home>/bin/export.sh -d Development -u admin/admin -c <migration_home>/templates/categoryattribute_criteria.xml -o <output file location>/alertdefinition_attributes.xml

#### 6.3.4.2 Step 2: Import exported category attributes to the destination.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Use the following command to import the category attributes to the destination:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition_attributes.xml -op INS

#### 6.3.4.3 Step 3: Verify the category attributes import through RMW Web user interface.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Provide the user credentials and select Development as the DB name.

4. Navigate to Administration > Setup > Meta model > Category > Manage.

5. Provide the category name as search criteria in the Name column.

6. Click the Search button.

7. Check if the imported category is displayed in the search result.

8. Click on the category name to view the category details.

9. In category details window check the category attributes added.

10. Refresh the cache if you do not see the changes. Refer the cache refresh section to see how to refresh the cache.

### 6.3.5 Updating Existing Category Attributes

Exporting category attributes of an existing category from one RMW application to importing these attributes to the same category in another RMW application. The same category should exist in both the application. Assume these additional attributes are available in the destination RMW application category. (Update operation will insert the attributes if not found in the destination).

#### 6.3.5.1 Step 1: Export category attributes.

Refer the preceding section to see how to export category attributes.

#### 6.3.5.2 Step 2: Import exported category attributes to the destination.

Use the following command to import the category attributes to the destination:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition_attribute.xml -op UPD

#### 6.3.5.3 Step 3: Verify the category attribute import through RMW Web user interface.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Provide the user credentials and select Development as the DB name.

4. Navigate to Administration > Setup > Meta model > Category > Manage.

5. Provide the category name as search criteria in the Name column.

6. Click the Search button.

7. Check if the category is displayed in the search result.

8. Click on the category name to view the category details.

9. In category details window check the attributes updated.

10. Refresh the cache if you do not see the changes. Refer the cache refresh section to see how to refresh the cache.

### 6.3.6 Deleting Existing Category Attributes

Exporting category attributes of an existing category from one RMW application to importing these attributes to the same category in another RMW application. The same category should exist in both the application. Assume these additional attributes are available in the destination RMW application category.

#### 6.3.6.1 Step 1: Export category attributes.

Refer the preceding section to see how to export category attributes.

#### 6.3.6.2 Step 2: Import exported category attributes to the destination.

1. Update the CFMConfig.xml to point to the source RMW application.

2. Use the following command to import the category attributes to the destination:

<migration_home>./import.sh -d Development -u admin/admin -i <input file location>/alertdefinition_attribute.xml -op DEL

#### 6.3.6.3 Step 3: Verify the category attributes import through RMW Web user interface.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Setup > Meta model > Category > Manage.

4. Provide the category name as search criteria in the Name column.

5. Click the Search button.

6. Check if the category is displayed in the search result.

7. Click on the category name link to view the category details.

8. In the View Details window, check if the category attributes are deleted from the category.

9. Refresh the cache if you do not see the changes. Refer the cache refresh section to see how to refresh the cache.

## 6.4 Web Services

The Web service templates are used to insert, update and delete Web services and related information from one RMW application to another RMW application.

Note When exporting Web service details using Web service templates, only the Web service related information is exported. Related integration application setup data will not be exported, this should be exported and imported separately, and should be available in the destination RMW application before importing Web service.

Template files:

Criteria file: webservices_criteria.xml

Schema file: webservices_schema.xml

Properties file: webservices_criteria.properties

### 6.4.1 Using Search Attributes to Export Web Services

You can use the following search attributes to export web services, as described here.

- Web Service ID: Provide the Web service ID for search attribute $$_WEBSERVICE_ID. For example, $$_WEBSERVICE_ID=WeighScaleService

- Service Name: Provide the service name for search attribute $$_SERVICE_NAME. For example, $$_SERVICE_NAME=WeighScaleService

### 6.4.2 Inserting New Web Services

To insert a new Web service to the destination RMW application, export those Web service(s) from the source RMW application and import them to the destination RMW application in insert mode.

Perform the following steps to export and import Web services:

#### 6.4.2.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservices_criteria.properties file.

2. Specify the search attribute values to export the Web services.

3. Check the following section for using different search attributes.

4. Export the Web services using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/Webservice_criteria.xml -o <migration_home>/webservices.xml

#### 6.4.2.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservices.xml -op INS

#### 6.4.2.3 Step 3: Check the newly added Web service through RMW Web user interface.

1. Open the RMW Web URL in the the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base>System Folder>Integration Folder>Web services.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the newly imported Web services shown in the search result.

9. You can click on the Web service ID to view details.

### 6.4.3 Updating Existing Web Services

To update a Web service in the destination RMW application, export those Web service(s) from the source RMW application and import them to the destination RMW application in update mode.

Perform Step 1: Export existing Web service(s) from source RMW application.the following steps to export and import Web services.

#### 6.4.3.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservices_criteria.properties file.

2. Specify the search attribute values to export the button callbacks.

3. Export the Web services using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/webservice_criteria.xml -o <migration_home>/webservices.xml

#### 6.4.3.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

   <migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservices.xml -op UPD

#### 6.4.3.3 Step 3: Check the newly added Web service through RMW Web user interface.

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base>System Folder>Integration Folder>Webservices.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the newly imported Web services shown in the search result.

9. You can click on the Web service ID to view details. Check if the modified information is updated in the destination RMW application.

### 6.4.4 Deleting Existing Web Services

To delete existing Web services in the destination RMW application, export those Web services and import them to the destination RMW application in delete mode.

Perform the following steps to export and import Web services:

#### 6.4.4.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservices_criteria.properties file.

2. Specify the search attribute values to export the button callbacks.

3. Export the Web services using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/webservice_criteria.xml -o <migration_home>/webservices.xml

#### 6.4.4.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservices.xml -op DEL

#### 6.4.4.3 Step 3: Check the deleted Web service through RMW Web user interface.

1. Open the RMW Web URL in the the Web browser.

2. Login to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base>System Folder>Integration Folder>Web services.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the deleted Web services are not shown in the search result.

## 6.5 Web Service Operations

The Web service operation templates are used to insert, update or delete Web service operations and related information from one RMW application to another RMW application. When exporting Web service operation details using Web service templates, not all Web service operation related information are exported. The related integration application setup information, Web service to which this Web service operation belongs, and so on will not be exported. This should be exported and imported separately, and should be available in the destination RMW application before importing a Web service.

Template files:

Criteria file: webservice_operation_criteria.xml

Schema file: webservice_operation_schema.xml

Properties file: webservice_operation_criteria.properties

### 6.5.1 Using Search Attributes to Export Web Service Operations

You can use the following search attributes to export a Web Service operation, as described here.

- Web Service ID: Provide the Web service ID for search attribute $$_WEBSERVICE_ID. For example, $$_WEBSERVICE_ID=WeighScaleService

- Web Service Name: Provide the service name for search attribute $$_SERVICE_NAME. For example, $$_SERVICE_NAME=WeighScaleService

- Operation Name: Provide the operation name for search attribute $$_OPERATION_NAME. For example, $$_OPERATION_NAME=printLabel

### 6.5.2 Inserting New Web Service Operations

To insert new Web service operation to the destination RMW application, export those Web service operation(s) from the source RMW application and import them to the destination RMW application in insert mode.

Follow these steps to export and import Web services.

#### 6.5.2.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservice_operation_criteria.properties file.

2. Specify the search attribute values to export the Web service operations.

3. Check the preceding section for using different search attributes.

4. Export the Web services operations using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/webservice_operation_criteria.xml -o <migration_home>/webservice_operations.xml

#### 6.5.2.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservice_operations.xml -op UPD

#### 6.5.2.3 Step 3: Check the newly added Web service through RMW Web user interface.

1. Open the RMW Web URL in the Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category System Folder > Integration Folder> Web service Operation.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the newly imported Web service operations shown in the search result window.

9. Click on the Web service operation to verify the Web service operation details.

### 6.5.3 Updating Existing Web Service Operations

To update existing Web service operation in the destination RMW application, export those Web service operation(s) from the source RMW application and import them to the destination RMW application in update mode.

Follow the following steps to export and import Web services.

#### 6.5.3.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservice_operation_criteria.properties file.

2. Specify the search attribute values to export the Web service operations.

3. Check the preceding section for using different search attributes.

4. Export the Web services operations using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/webservice_operation_criteria.xml -o <migration_home>/webservice_operations.xml

#### 6.5.3.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservice_operations.xml -op UPD

#### 6.5.3.3 Step 3: Check the updated Web service operations through RMW Web user interface.

1. Open the RMW Web URL in the Internet Explorer Web browser.

2. Login to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category System Folder > Integration Folder > Web service Operation.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the updated Web service operations shown in the search result window.

9. Click on the Web service operation to verify the Web service operation details.

### 6.5.4 Deleting Existing Web Service Operations

To update existing Web service operation in the destination RMW application, import the Web service operation xml to destination RMW application in delete mode.

Follow the following steps to export and import Web services.

#### 6.5.4.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the webservice_operation_criteria.properties file.

2. Specify the search attribute values to export the Web service operations. Check the preceding section for using different search attributes.

3. Export the Web services operations using following command:

   <migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/webservice_operation_criteria.xml -o <migration_home>/webservice_operations.xml

#### 6.5.4.2 Step 2: Import the exported Web services to destination RMW application.

1. Import the exported xml using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/webservice_operations.xml -op DEL

#### 6.5.4.3 Step 3: Check the deleted service operations through RMW Web user interface.

1. Open the RMW Web URL in Internet Explorer Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration> Library > Manage Record.

4. Click the Browse tab.

5. Select category System Folder > Integration Folder > Web service Operation.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, Web service ID, service name, and so on.

8. Search for the record and verify the deleted Web service operations are not shown in the search result window.

## 6.6 Action-to-Web-Service Operations

Action to Web service operation templates can be used to insert, update, or delete the Web service operation - button callback. This link is used to link an existing 'button callback' to an existing 'Web service operation'.

This procedure using 'Action - Web service link' template, exports or imports only the link between a Web service operation and button callback. The referenced Web service operation and button callback should be available in the destination RMW application prior to import.

Template files:

Criteria file: action_webserviceoperation_criteria.xml

Schema file: action_webserviceoperation_schema.xml

Properties file: action_webserviceoperation_criteria.properties

### 6.6.1 Using Search Attributes to Export Action to Web Service Links

You can use the following search attributes to export an action-web service link, as described here.

- Button Callback ID: To export all Web service operation action links for the button callback ID.

Provide the value for the $$_BUTTON_CALLBACK_ID search attribute. For example, $$_BUTTON_CALLBACK_ID=PCM_INT_PRINT_LABEL

- Web service operation name: To export all Web service operation action links for the Web service operation.

Provide the value for the $$_OPERATION_NAME search attribute. For example, $$_OPERATION_NAME=printLabel

### 6.6.2 Linking Button Callback To Web Service Operation

To link existing buttons to a component in the destination RMW application, export the links from the source RMW application and import them to the destination RMW application.

Perform the following steps to export and import component button links:

#### 6.6.2.1 Step 1: Export existing Web service(s) from source RMW application.

1. Open the action_webserviceoperation_criteria.properties file.

2. Specify the search attribute values to export the Web service operation-action link.

3. Export the links using the following command:

<migration_home>./export.sh -d Development -u admin/admin -c <migration_home>/templates/criteria/action_webserviceoperation_ criteria.xml -o <migration_home>/action_wsoperations.xml

#### 6.6.2.2 Step 2: Import the exported Web service operation to action link to destination RMW application, using the following command:

<migration_home>./import.sh -d Development -u admin/admin -i <migration_home>/action_wsoperations.xml -op INS

#### 6.6.2.3 Step 3: Check the newly added Web service through RMW Web user interface.

1. Open the RMW Web URL in the Web browser.

2. Log in to the application using valid user credentials.

3. Navigate to Administration > Library > Manage Record.

4. Click the Browse tab.

5. Select category Base >System Folder>Integration Folder>Action to Web service Operation.

6. Click the Search tab.

7. Provide the required search criteria, you can use the similar criteria values used for export, like, button call back ID, Web service operation ID, and so on.

8. Search for the record and verify that the newly added records are not shown in the search results.

9. Click on the record to verify the record details