Designer - "Copy condition" in properties links behavior

What product/components do you use and which version/fix level?

10.3

Are you using a free trial or a product with a customer license?

Customer

What are trying to achieve? Please describe in detail.

I’m trying to check if a variable is NOT NULL before copying it to another Document.
For this, I’m trying to use the “COPY CONDITION” property available in the “line” which links one Document to Other.

For example: Let’s say we have a Document List of “EMPLOYEES”.
Then, I need to map this Document List to another Document List.

But, I would like to check if “EMPLOYEES/ZTITLE” is NOT NULL , in other words, it must contain a value before sending to the destination.

I tried the following conditions but it didn’t work:
%EMPLOYEES/ZTITLE% != null
%EMPLOYEES/ZTITLE% != $null
%EMPLOYEES/ZTITLE%

The only way that worked was:
!%EMPLOYEES/ZTITLE%

But I didn’t understand this COPY CONDITION logic. It should return FALSE or TRUE to copy the value? Could you help me?

image
image

Thanks in advance!!! :smiley:

Do you get any error messages? Please provide a full error message screenshot and log file.

No errors

Have you installed latest fixes for the products

Fix #18


%emp/name%!=null condition is working for me.

Copy steps only gets executed if condition result is true.

Hi Biswa.
Thanks for your response.
Please, could you test the same using a Document List instead of a single document object?
Thank you


Yes it is working. In case of array. You need to set array index in condition.

Understood!

But, if I put the index 0 (zero) won’t affect the condition only for the first array element? Or the condition will be set to the other elements too??

image
image
You can foreach step for each array item.

image
Foreach menu you will find in pipeline toolbar

sample.zip (6.1 KB)
input.xml (464 Bytes)

Sample array copy with fitter package is attached. Also find input to run flow service.


image

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.