cancel
Showing results for 
Search instead for 
Did you mean: 

What is the effect of the checkbox Multiline in Condition Editor?

markus_schalk
Participant
0 Kudos

Hi everyone,

could anyone please explain me the function of the checkbox Multiline in the Condition Editor in detail?

I would appreciate an example...

This is not clear for me (out of help.sap):

An XPath expression is multiline if it returns a list. If the relevant checkbox has been selected, the evaluation of the expression will take into account that it is a list (and not a single value).

Example Example

The condition <Expression>=a is interpreted differently, depending on whether <Expression> is a single or multiline expression:

<Expression> is a simple expression: <Expression> is equal to a

<Expression> is a multiline expression: <Expression> is a list that contains the value a

Thanks in advance!

Kind regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hope this thread will help you .. there is one example..

Thanks,

Bhupesh

markus_schalk
Participant
0 Kudos

Thanks for your answer (helpful), but i have seen this before...

To take the example:

<E1EDK14 SEGMENT="1">

<QUALF>006</QUALF>

<ORGID>01</ORGID>

</E1EDK14>

<E1EDK14 SEGMENT="1">

<QUALF>007</QUALF>

<ORGID>04</ORGID>

</E1EDK14>

<E1EDK14 SEGMENT="1">

<QUALF>008</QUALF>

<ORGID>1000</ORGID>

</E1EDK14>

XPath: /ORDERS05/IDOC/E1EDK14/ORGID = 007

If Multiline is checked, what is the behaviour of PI:

Does it check every E1EDK14-Element for ORGID? If yes, does the condition only get true if all ORGIDs are 007?

Does it just search until it found one ORGID = 007? If yes, is the condition true if one ORGID = 007 is found?

If Multiline is not checked,what is the behaviour then?

Does PI only check the first ORGID it finds?

Maybe someone can make it clear for me with this example!?

Thanks in advance!

Kind regards

Markus

Former Member
0 Kudos

Hi Markus,

I will give u an exaple from my personal experience.

U are using BPM in the foll scenario:

-> Source sends 3 files of same structure (say S1), u wait for the files for 5 mins

-> BPM waits and collects the 3 messages and appends them in one single conatiner (say C2)

Now for this scenario:

1. U create a container (C1) of type S1(pointing to abstract S1)

2. U create another container C2 of type S1, but this one is having multiline checked, since this will be storing the entire structure S1 multiple times.

3. Later u apply some logic to C2 which is not relevant in this post's context and interface is completed

For Ex:

S1 and C1

start

A

B

C

end

So C2 looks like

start

A

B

C

end

start

A

B

C

end

start

A

B

C

end

Hope this clarifies.

Cheers,

Souvik

Edited by: Souvik Chatterjee on Apr 14, 2011 12:17 PM

Edited by: Souvik Chatterjee on Apr 14, 2011 12:20 PM

Former Member
0 Kudos

Hi Markus,

>If Multiline is checked, what is the behaviour of PI:

>Does it check every E1EDK14-Element for ORGID? If yes, does the condition only get true if >all ORGIDs are 007?

>Does it just search until it found one ORGID = 007? If yes, is the condition true if one >ORGID = 007 is found?

I think when Multiline checked, every E1EDK14/ORGID will be checked, only when every E1EDK14/ORGID equals 007, then the condition is true.

>If Multiline is not checked,what is the behaviour then?

>Does PI only check the first ORGID it finds?


When Multiline is not checked, PI checks not only the first E1EDK14/ORGID, but when if finds one E1EDK14/ORGID = '007', then it stops to evaluate other E1EDK14/ORGID and return true.

Answers (0)