Question
· May 2, 2018

How to pass a list from one BPL to another BPL?

What is the best way to pass a list(collection) of integers from one BPL to another BPL?

Here is what I have now, but this doesn't seem to be working. In the CALL to the other BPL I am trying to pass the EOBList. Not sure what I am doing wrong.

<call name='Call COPYBATCH and Finish' target='CopyBatch and Finish' async='1' xpos='200' ypos='850' >
<request type='MSI.IN835.bp.CopyBatchAndFinishOut>
<assign property="callrequest.StageBatchIdvalue="context.tStageBatchIdaction="set" />
<assign property="callrequest.Filenamevalue="request.Sourceaction="set" />
<assign property="callrequest.EOBListvalue="context.tEOBListaction="set" key="context.tEOBID/>
</request>
<response type='Ens.Response/>
</call>

Discussion (2)1
Log in or sign up to continue

One thing I see is that you don't need a value for the "key" attribute in the assign for callrequest.EOBList.  Key is used to assign the value to a specific member of an array/list whereas it looks like you want to assign the entire list.

Does this work better?
<
assign property="callrequest.EOBListvalue="context.tEOBListaction="set" key="/>

Are StageBatchId and Filename getting passed correctly?