My Oracle Support Banner

Handling Questionnaires And Lists With The M2-MaintainUtilityActByHost Service (Doc ID 2498909.1)

Last updated on JUNE 05, 2024

Applies to:

Oracle Utilities Mobile Workforce Management - Version 2.3.0.0.0 and later
Information in this document applies to any platform.

Goal

When invoking the Inbound Web Service M2-MaintainUtilityActByHost for an Activity Update (i.e. send an update message for the activity comment only), the Questionnaire details that is within a List element are being deleted. Only the Questionnaire Code and Questionnaire Description are retained because they don’t reside within a List element. All the other Activity information is also retained even if they are not included on the update message. All the other Activity information that resides on a List element like the Effective Time Windows, Override Capabilities, etc. is retained.

After looking at the logic of the base IWS M2-MaintainUtilityActByHost, I noticed that on one of the scripts being called (M1-CmnMnAcHs), it is missing logic to restore the Questionnaire details that are within a List element (Step 30).

Steps to Replicate with Screenshots:
1. Create an Activity where it is using the questionnaire style form Activity BO i.e. M2-ItemInspectionActivity
2. Invoke Inbound Web Service M2-MaintainUtilityActByHost to update the Activity comment. The invoke was successful and received a positive response.
3. View the Activity again after the update. Activity comment is updated. All the other Activity information is also retained even if they are not included on the update message. All the other Activity information that resides on a List element like the Effective Time Windows, Override Capabilities, etc. is retained. Questionnaire Code and Description are retained HOWEVER the Questionnaire details that are within a List were all deleted.

After looking at the logic of the base IWS M2-MaintainUtilityActByHost, I noticed that on one of the scripts being called (M1-CmnMnAcHs), it is missing logic to restore the Questionnaire details that are within a List element (Step 30). You will notice that this base script has specific codes to retain all the other activity information that resides on a list element like Effective Time Windows, Override Capabilities, etc. HOWEVER it has no logic to restore the Questionnaire details that resides on a list element. This is the reason why the Questionnaire details are being deleted during Activity update.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.