How can we access the Entity created using .new operator in

Posted by suvetha s on 17-Dec-2016 02:13

for example create entity_1 where attribute a=20. Then, create new entity with .new operator ( entity_1.new[a=60])

Now, I have to add the two attributes like a=20+60 . this operation has to be done in another rulesheet without using collection.

How can we access the newly created Entity?

Posted by mparish on 17-Dec-2016 04:44

Click for enlarged view

All Replies

Posted by mparish on 17-Dec-2016 04:44

Click for enlarged view

Posted by mparish on 18-Dec-2016 17:40

Just be aware that the second solution assumes there is only one "old" instance to which all the other  "new" instances get added. If you have more than one "old" they will all get all of the other "new" values added to them.

This thread is closed