Skip to content

XAware Open Source Data Integration

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:In-memory processing of CopyBooks (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:In-memory processing of CopyBooks
#2334
voconnor (User)
XAware expert
Posts: 418
User Online Now Click here to see the profile of this user
Re:In-memory processing of CopyBooks 5 Months ago Karma: 7  
Kirstan, I'm building some examples to demonstrate passing in-memory data ... using an updated 5.1 build (#501) and using the wizard defaults to auto-generate the layout, but I'm getting a slightly wonky result.

Here is the BizComponent:

<?XML version="1.0" encoding="UTF-8"?>
<FILETEST xmlns:xa="http://xaware.org/xas/ns1" xa:bizcomptype="COPYBOOK" xa:response_type="process">
<xa:description>This BizComponent processes an in-memory structure passed in as a message instead of pointing to a file.</xa:description>
<xa:input>
<xa:param xa:name="data" xa:datatype="string" xa:default="CONTACT001NAME11NAMEXXCONTACT002NAME22NAMEYY0000000000NAME33NAMEZZ02/22/02" xa:description="Data to process" xa:required="yes" />
</xa:input>
<xa:request xa:request_type="text2xml" xa:record_source="%data%" xa:format="fixed_length" xa:source_type="message">
<xa:return />
</xa:request>
<xa:record_layout xa:record_start="0" xa:record_length="74">
<CONTACT xa:occurs="3">
<ID xa:start="0" xa:field_length="10" xa:pic_value="X(10)" />
<NAME xa:start="10" xa:field_length="10" xa:pic_value="X(10)" />
<STATE xa:start="20" xa:field_length="2" xa:pic_value="X(2)" />
</CONTACT>
<DATE xa:start="66" xa:field_length="8" xa:pic_value="X(8)" />
</xa:record_layout>
<xa:response>
<process>
<contact>
<ID>%ID%</ID>
<Name>%NAME%</Name>
<State>%STATE%</State>
</contact>
<date>%DATE%</date>
</process>
</xa:response>

Here is the result:

<Document>
<process>
<contact>
<ID>%ID%</ID>
<Name>%NAME%</Name>
<State>%STATE%</State>
</contact>
<date>02/22/02</date>
</process>
</Document>

My question is this: is data passed in by message like this assumed to be a single data set, i.e., is the the xa:occurs attribute valid in this type of scenario?

Also, since I auto-generated the BizComponent, then added the xa:source_type manually, shouldn't this example return substituted values, versus the unsubstituted ones it is returning now?

Virginia
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
In-memory processing of CopyBooks
ab5trakkt 2008/08/05 11:58
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
prichards 2008/08/05 14:51
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
ab5trakkt 2008/08/06 06:57
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/06 17:40
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
prichards 2008/08/07 14:52
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/07 21:44
    thread link
thread linkthread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/08 09:10
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
ab5trakkt 2008/08/08 09:37
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/12 09:00
    thread link
thread linkthread linkthread linkthread link Re:In-memory processing of CopyBooks
ab5trakkt 2008/08/12 14:06
    thread link
thread linkthread linkthread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/12 16:08
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
voconnor 2008/08/08 11:20
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/12 08:28
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
voconnor 2008/08/08 11:34
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
voconnor 2008/08/08 13:32
    thread link
thread linkthread link Re:In-memory processing of CopyBooks
voconnor 2008/08/12 08:57
    thread link
thread linkthread linkthread link Re:In-memory processing of CopyBooks
kvandersluis 2008/08/12 09:07
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Polls

What best describes your current or next project that will include data services?
 

Visit XAware.com