Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7547609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:29:49+00:00 2026-05-30T09:29:49+00:00

I have a provided stored procedure (SP) that i should execute in tibco, which

  • 0

I have a provided stored procedure (SP) that i should execute in tibco, which has the following signature:

PROCEDURE  GET_STOCK_QTY(
  WarehouseId Number,
  LineItem ref_lines,
  ResponseCode OUT Number,
  ResponseDesc OUT Varchar2,
  RespLineItems OUT sys_refcursor
);

The *ref_lines* is defined as follows:

TYPE items_record is RECORD(
  ItemCode varchar2(15),
  ItemQuantity number
);
type ref_lines IS REF CURSOR RETURN items_record;

So, as you’ve already noticed i have a cursor as an input and output of the SP. I’ve already been googling for this kind of problems and found out that tibco does not suport these type of in and outputs, i’ve also found out that it does not even support boolean native type, which is weird… :S
Eitherway, for what I’ve read, two possible solutions are on the way:

  1. SQL Direct
  2. Java Custom Function

Now, my doubts.

If I’m going to use solution number 1 I have to build the cursor to provide as input in pure sql, but how I’m a going to do it? Do I have to create a temporary table with the values that i have for the input and then open a cursor for that table? Is this the only way to do this?

I haven’t explored solution number two yet, but i thought that Java could support these kind of inputs and outputs and i just declare arrays. Is this assumption right? Will it be this easy, or I’ll have invoke sql as i would in solution number 1?

PS: Are this 2 possible solutions the only ones? Is there any tibco guru with a workaround to make BW support this WEIRD inputs and outputs? 😛

Thanks in advance,
Tiago Brunhoso Nunes

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:29:51+00:00Added an answer on May 30, 2026 at 9:29 am

    After a lot of googling the only way I managed to overcome this issue was to create a wrapper package on the database that encapsulates the inputs and the outputs that tibco could not recognize into something that it can.

    What I’ve done for now was:

    1. Created two new tables ( 1 for the input cursor and another for the output);
    2. Created a wrapper SP that accepts as inputs and outputs only the simple datatypes – without the cursors;
    3. Tibco inserts the input array of values into the created table;
    4. The wrapper SP opens a cursor to this table and invokes the first SP with the cursors;
    5. Finally it fills the output table with the values from the output cursor and Tibco reads this table;

    (I know that probably it isn’t the best way to do this… :S)

    PS: It came to my knowledge that oracle pl sql supports natively xml inputs and I could have gone to that solution, which seems to be a much cleaner one, but it would take me too long to implement… If anyone has any knowledge on this, I would appreciate some tips! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a stored procedure that takes a lot of time to execute. We
How can I execute a stored procedure that takes in parameters without having to
I have a Firebird stored procedure that accepts Decimal(9,6) values for Latitude and Longitude
I have a stored procedure that takes care of updates to my person table.
I have a std::multiset which stores elements of class A . I have provided
I have a page in which i have provided a link clicking on which
I have a collection that is binded to my Listview. I have provided options
I have a DLL which provided a decoding function, as follows: function MyDecode (Source:
I have stored-procedure in Oracle database like this: create or replace PROCEDURE EDYTUJ_PRACOWNIKA (PR_IMIE
I'm currently writing a small app that takes data provided by an SQL stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.