Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get value of jca.file.IsEof using fromproperties in file adapter

967397Oct 10 2012 — edited Feb 26 2020
Hi Guys,

I have a scenario where i use a file adapter for syncread (for doing chunkRead).
While invoking this adapter i send jca.file.FileName and jca.file.Directory as input properties dynamically.
In response i expect jca.file.IsEOF and jca.file.IsMessageRejected, for this i have done the following steps.

1. Create a file adapter for SyncRead
2. Create an invoke activity and input/output variables along with it.
3. set input properties as below ..
4. get the values of jca.file.IsEOF and jca.file.IsMessageRejected using bplex:fromproerties



<invoke name="Invoke1"
inputVariable="Invoke1_SynchChunked_InputVariable"
outputVariable="Invoke1_SynchChunked_OutputVariable"
partnerLink="SamplSyncChunkRead"
portType="ns19:SynchChunked_ptt"
operation="SynchChunked"
bpelx:invokeAsDetail="no">
<bpelx:inputProperty name="jca.file.FileName"
variable="inputVariable"
part="payload"
query="/ns11:fileHeader/ns11:fileName"/>
<bpelx:inputProperty name="jca.file.Directory"
variable="inputVariable"
part="payload"
query="/ns11:fileHeader/ns11:directory"/>



<bpelx:fromProperties>
*<bpelx:fromProperty name="jca.file.IsEOF" variable="isEndofFile"/>*
*<bpelx:fromProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>*
</bpelx:fromProperties>
</invoke>

5. Flow of the project is fine but im not getting the fromProperty values assigned to variables.


Note : rather using from proerties like give below

<bpelx:fromProperties>
*<bpelx:fromProperty name="jca.file.IsEOF" variable="isEndofFile"/>*
*<bpelx:fromProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>*
</bpelx:fromProperties>

if i use output proerties as given below it is not working..

<bpelx:outputProperty name="jca.file.isEOF" variable="isEndofFile"/>
<bpelx:outputProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>


Any suggestions on this ???

Thanks in advance guys...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2012
Added on Oct 10 2012
3 comments
523 views