5.1 MVC MethodOutput Log

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
shalomsims
Posts: 38
Joined: March 16th, 2022, 1:04 pm
Contact:

5.1 MVC MethodOutput Log

Unread post by shalomsims »

In 5.1 MVC, I'm looking in the logs and I see two outputs. One Output comes from a MethodOutput service and displays some data with the path "_MethodOutput/Result/[data]"

Then there is another log for an Output that has the same results but the path is "WorkData/Output/Output/Result/[data]"
Screenshot 2022-10-11 113838.png
Screenshot 2022-10-11 115206.png
We tested and found out that MethodOutput is the reason for both Outputs in the logs but why is that necessary? Which Output should be used and why?
image.png
word count: 82

Tags:
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: 5.1 MVC MethodOutput Log

Unread post by SteveCap »

The MethodOutput service is used to pass value to the output a CallMethod or CallSubMethod service when Classic is set to False to have the outputs as WorkData/CallMethod/Output/Result/NodeFromMethodOutputService.

Within a method or submethod the MethodOutput service will act as a CreateServiceNode with the difference being it will look to see if _MethodOuput exists if it does it will remove it. Then it will put its output under _MethodOutput so then when the entire method is done running it can take all values in _MethodOutput and put it in the calling process WorkData under the CallMethod or CallSubMethod to make it look like above. This is because we only want to take the last one.

Really you should not reference either of them directly as the MethodOutput service should really be the last service in the method or submethod. You should then reference the values in the parent by WorkData/CallMethod/Output/Result/NodeFromMethodOutputService
word count: 157
CathyC
Posts: 472
Joined: November 16th, 2021, 11:15 am
Contact:

Re: 5.1 MVC MethodOutput Log

Unread post by CathyC »

Here is a forum post that explains how to use method output in more detail and with some screenshots.
viewtopic.php?p=1662
word count: 23
Post Reply