Visual Builder

Get Involved. Join the Conversation.

Topic

    Cesar Tepetla Corte
    Issue to send content Visual Builder to integrate OIC.
    Topic posted February 21, 2019 by Cesar Tepetla CorteBronze Medal: 1,250+ Points, last edited February 21, 2019, tagged JET, Process, REST 
    119 Views, 9 Comments
    Title:
    Issue to send content Visual Builder to integrate OIC.
    Summary:
    Issue to send content Visual Builder to integrate OIC.
    Content:

    The application in which I work consists of a table and a button.

    The table contains only two columns, the first shows the file name and the second shows the date, I created an event so that when a row is selected take the name of the first column and assign it to a variable later when I press the button a REST service that sends the contents of the variable to an OIC integration is invoked, but I have encountered the following problem. The OIC integration does not receive the String I am sending from visual builder, keeping track of the integration shows a message like the one shown in the screenshot Monitoring.png.

    I have tried the integration of OIC in tools like PostMan and Boomerang and it works correctly the problem seems to be sending the data from Visual Builder.

    Any opinion and help is appreciated.

    Image:

    Comment

     

    • Shay Shmeltzer

      Check the browser's network console to see what is being sent on the REST request to OIC - does the value show up there?

      Check your action chain to make sure that you passed the right variable to the Invoke REST input params.

      Try adding a notification before the call that will show you the value of the variable at that point to make sure it still has a valid value.

      • Cesar Tepetla Corte

        1. I have printed the variable in fire notification and it is displayed correctly

        2. I have attached a capture of the action chain mapping I only assign the variable with the Body of the REST service.

      • Cesar Tepetla Corte

        I have reviewed Network Console and if you view the content of the request

        • Shay Shmeltzer

          So it looks like the value is being sent on the REST call - you now need to look at the OIC side to see why the value is not being used or if there are any errors reported on the OIC server side.

          • Cesar Tepetla Corte

            On the side of the OIC I have reviewed and it seems that the integration is executed correctly, review the audit trails and the last message says "The processing has finished correctly."


            But the problem is that it throws me a file without content because instead of receiving the name it sends a blank space.
            that's why in the first screenshot of this post the variable says undefined.

            • Shay Shmeltzer

              Let's take out VB from the picture for a minute to try and figure out where's the problem.

              Can you test invoking this REST from outside VB (for example with postman) and see if you can get the OIC to work properly when you pass the same structure that you pass from VB?

              If not you'll need to figure out what is the right structure that OIC is expecting to get before you can set VB to send this.

      • Cesar Tepetla Corte

        I have reviewed Network Console and if you view the content of the request

    • Shay Shmeltzer

      Is your v_fn variable based on a type that matches the request parameters that the REST service expects?

      See this demo for how to define such a type:

      https://blogs.oracle.com/shay/working-with-rest-post-and-other-operations-in-visual-builder

      Do you see the body correctly formatted in the browser's network console in the REST call?

      • Cesar Tepetla Corte

        I have reviewed my mapping according to the post sharing but I still get the same result.

        Does it somehow work with the browser in incognito mode?