0 votes
1.6k views
in Javascript API by

1 Answer

0 votes
by
edited by anonymous

There is a simple way to compare two business objects for equality, the string representation of xml of two complex variables or list of complex variables will exactly be same if their contents are same 

make a copy by value before editing

tw.local.savedcopy = tw.system.serializer.fromXml(tw.system.serializer.toXml(tw.local.originalvariable))

compare as

if (tw.system.serializer.toXml(tw.local.savedcopy).toString(true) == tw.system.serializer.toXml(tw.local.originalvariable).toString(true)){

;

}

Related questions

0 votes
0 answers 1.2k views
0 votes
0 answers 571 views
0 votes
0 answers 390 views
0 votes
1 answer 879 views
+1 vote
1 answer 1.5k views
0 votes
0 answers 371 views
0 votes
1 answer 1.3k views
0 votes
0 answers 1.3k views
0 votes
1 answer 2.3k views
0 votes
0 answers 951 views
0 votes
1 answer 1.2k views

635 questions

495 answers

98 comments

3.3k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...