Skip to Content
author's profile photo
Former Member

Dynamically accessing a Transaction.

Hi All,

I need to create a transaction which will have three parameters namely

TransactionPath

InputParameterList

InputValueList

OutputParameters

Now in TransactionPath i will be assigning a Transaction full path which is dynamic, and the input parametes and input values needed to that transaction i will get through InputParameterList and InputValueList.

Now my doubt is my trx will be changing each time since it is dynamic, so how do i pass the input paramets to the dynamic transaction and i need to assign the dynamic trx output to the OutputParameters variable in my trx.

Is it possible to do ????

Regards,

Sireesha

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on May 03, 2011 at 12:17 PM

    Hi Sireesha,

    If you are working in MII 12.1 or greater, use the dynamic transaction call within your called transaction. You will have to have created the other three properties within the transaction. You can feed the Dynamic Transaction Path to the dynamic transaction call action block.

    To try to clarify. You would call a first transaction, call it FirstTransaction. The first transaction could be as simple as a single sequence with a Dynamic Transaction Call action block and would have the four input transaction properties you specified.

    Pass the Full Dynamic Transaction Path to the Dynamic Transaction Call whiich will define the transaction next to be executed. If there is some parsing required before passing the remaining inputs, then do it within FirstTransaction using other action blocks. I would combine it all into a single input structure as InputXML (datatype xml). Deciding how to make a common input xml structure could be fairly challenging. It depends on how much variation in the input data from one dynamically called transaction to the next. In other words, how much difference will there be for one transaction's inputs to another via the Dynamic Transaction Call.

    I would suggest that you provide more of the business case you are trying to solve. There may be more than one way to solve your need than what you have outlined so far.

    Regards,

    Mike

    Edited by: Michael Appleby on May 3, 2011 2:17 PM

    Add comment
    10|10000 characters needed characters exceeded