0 votes
1.7k 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 577 views
0 votes
0 answers 405 views
0 votes
1 answer 898 views
+1 vote
1 answer 1.6k views
0 votes
0 answers 382 views
0 votes
1 answer 1.3k views
0 votes
0 answers 1.3k views
0 votes
1 answer 2.4k views
0 votes
0 answers 970 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
...