Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
07-01-2021 06:47 AM - last edited on 04-02-2024 05:57 PM by Ryan.Paredez
Hello,
I have this method.
function requestQuote(policyPeriod : PolicyPeriod, nextStep : String) {
requestQuote(policyPeriod, nextStep, ValidationLevel.TC_QUOTABLE, RatingStyle.TC_DEFAULT)
}
I am trying to call a method on the policyPeriod parameter for data and it is not working for me.
in code it would look like this -> policyPeriod.Submission.DisplayName which would return a string.
Submission looks like this. It is a method that returns an object.
public entity.Submission getSubmission() {
return ((com.guidewire.pc.domain.policy.period.PolicyPeriodPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.policy.period.PolicyPeriodPublicMethods")).getSubmission();
}
I have tried invoke object, use getter chain with getSubmission, getSubmission(), Submission, and Submission() combinations. I get an out put similar to this.
[CANNOT EVALUATE: Could not find specified method = [Submission()], CANNOT EVALUATE: Could not find specified method = [Submission()]]
Here is my last attempt. Any help would be appreciated. Thanks....
07-05-2021 02:35 AM
Hi Kenneth
What is the MIDC Setup like, What class and method are you using in the configuration? Can you share that?
The easiest way to test this, is to use the Live Preview functionality, enter the class and method name, then use the Live preview Second tab option called Method Invocations.
With this you can check the actual data being populated live , and configure the collection as it needs to be.
Can you validate that you can see the data you are trying to extract using live preview?
07-05-2021 06:55 PM
Thanks Mario. Here is the MIDC. The first data to collect policyPeriod which is the parameter.toString() is returning something back. I will try the Live Preview tomorrow to see if that helps. Thanks.
07-06-2021 12:18 PM
Hello Mario,
I did Live Preview on Transaction Discovery (see below). I can see the method in the class, but do see no Live preview Second tab option called Method Invocations to see what is in the parameter. Should I be doing Live Preview somewhere else?
07-06-2021 12:31 PM
07-06-2021 12:39 PM
Thanks Mario,
I am still not seeing a second tab with Method Invocations in this screen either.
07-06-2021 12:41 PM
Hello Mario. I spoke to soon. I found it and will let you know if it helps. Thanks....
07-06-2021 12:42 PM
07-06-2021 02:29 PM
Thanks Mario,
I found it. I am not sure why the first parameter show up as Param 1, but the PolicyPeriod is the first parameter in the method and the one I am trying to access. It appears the issue is that the parameter is not the actual object, but a delegate. With what you are seeing below, is there anyway to get to the properties/methods of PolicyPeriod? Thanks again for your help.
07-06-2021 02:42 PM
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form