cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically accessing a Transaction.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

agentry_src
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Mike,

Thanks for the reply, In the First Transaction as you named i have included the Dynamic Transction action block and mapped the full transaction path, now my doubt is in the First Transaction i have InputParameterList and the corresponding InputValueList.

I need to first check the dynamic transaction input parameters matching with the First Transaction InputParameterList and if there are any i need to map the InputValueList values accordingly to the Dynamic Transaction input parameters.

One more thing is how do i map the output of the Dynamic Transaction to the OutputParameters transaction parameter in the First Transaction.

Regards,

Sireesha

agentry_src
Active Contributor
0 Kudos

Create a property in both First and Second transactions (all the dynamically called ones) and name it something like OutputXML then use that property in an assignment block (or the output tab/section of the Dynamica Transaction Call) from the output of the called transaction to the output of First transaction. Make sure the properties in both transactions have Output checked.

Regards,

Mike

Former Member
0 Kudos

Thanks Mike, this is what i need

Answers (0)