ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere DataPower » dynamic processing using choice in ffd

Post new topic  Reply to topic
 dynamic processing using choice in ffd « View previous topic :: View next topic » 
Author Message
balaji sr
PostPosted: Sun Oct 23, 2011 8:10 pm    Post subject: dynamic processing using choice in ffd Reply with quote

Apprentice

Joined: 07 Jan 2003
Posts: 28

I am implementing Dynamic Processing using choice Component. I used the sample provided by the contivo, but it doesnt work as mentioned in the sample.

FFD : has a choice under that 3 group, CreditCard, BankCheck and Acct.

<?xml version="1.0" encoding="UTF-8"?>
<File name="Orders">
<Syntax name="Field" qc="&quot;'" qopt="true" qdouble="true"/>
<Group name="Order" maxOccurs="unbounded" delim="\n" syntax="Field">
<Field name="Name" delim="," />
<Field name="City" delim="," />
<Field name="State" delim="," />
<Field name="Amount" delim="," />
<Literal value=";" />
<Choice name="Payment">
<Group name="CreditCard" syntax="Field">
<Field name="Type" delim="," minOccurs="0"/>
<Field name="Acct" delim="," minOccurs="0"/>
<Field name="Expires" delim="," minOccurs="0"/>
</Group>
<Group name="BankCheck" syntax="Field">
<Field name="RouteNo" delim="," minOccurs="0"/>
<Field name="AcctNo" delim="," minOccurs="0"/>
</Group>
<Group name="Acct" syntax="Field">
<Field name="Account" delim="," minOccurs="0"/>
</Group>
</Choice>
</Group>
</File>


Ex:

Scenario1:
i/p: John Doe,Sacramento,CA,200.00;Visa,75677478467,0508
o/p: <?xml version="1.0" encoding="utf-8"?>
<Orders>
<Order>
<Name>John Doe</Name>
<City>Sacramento</City>
<State>CA</State>
<Amount>200.00</Amount>
<Payment>
<CreditCard>
<Type>Visa</Type>
<Acct>75677478467</Acct>
<Expires>0508</Expires>
</CreditCard>
</Payment>
</Order>
</Orders>



Scenario2:
i/p: Jane Doe,San Francisco,CA,230.23;37474,36376839
o/p) <?xml version="1.0" encoding="utf-8"?>
<Orders>
<Order>
<Name> Jane Doe </Name>
<City> San Francisco </City>
<State>CA</State>
<Amount>230.23</Amount>
<Payment>
<CreditCard>
<Type>37474</Type>
<Acct>36376839</Acct>
</CreditCard>
</Payment>
</Order>
</Orders>



Scenario3:
i/p: Joe Schmoe,contact admin,CA,23.34;JoSch0038374
o/p:
<?xml version="1.0" encoding="utf-8"?>
<Orders>
<Order>
<Name>Joe Schmoe</Name>
<City>contact admin</City>
<State>CA</State>
<Amount>23.34</Amount>
<Payment>
<CreditCard>
<Type>JoSch0038374</Type>
</CreditCard>
</Payment>
</Order>
</Orders>


In above three cases, only first choice group(CreditCard) is getting executed. But as per the sample first scenario should execute credit card, second scenario should execute bank check and third scenario should execute account number.

Could anyone help to resolve on this.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere DataPower » dynamic processing using choice in ffd
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.