cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a node based on constraint

Former Member
0 Kudos

Hi Experts Team,

I just want to create an Element, if it satisfies some constraint.

Eg:

if strInput is NOT EQUAL to ""

create an element(node) in the Target Structure.

How can I do that?

Please help me...

regards,

Kanda

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sudhir,

I have tried the same but the problem here is,

Instead of node with value, it creates only node with no values..

My Complete Scenario..

If CONSPART is Y

then MY UDF returns some value

else

return "";

my target node must reflect the value, what my UDF returns,

if it returns "", no node should be created.

hope that will help u

SudhirT
Active Contributor
0 Kudos

Hi S.P.

In the UDF itself add this statement in place of

result.addValue("");

replace it by

result.addSuppress();

That will do your purpose Use advance java UDF.

Thanks!

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>if strInput is NOT EQUAL to ""

create an element(node) in the Target Structure.

but what's the problem?

are you using message mapping? did you see function - IF ?

you can use it to create delete nodes on any condition

(just remember to use context correctly)

Regards,

Michal Krawczyk

http://mypigenie.com XI/PI FAQ

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

Use CreateIf node function as suggested by Sudhir

SudhirT
Active Contributor
0 Kudos

Hi,

Try

InputSTR-----
                     EqualS----Not---CreateIf-----TargetNode
Constant("")---

Thanks!