How can we access the Entity created using .new operator in another rule sheet without using collections? - Forum - Corticon - Progress Community

How can we access the Entity created using .new operator in another rule sheet without using collections?

 Forum

How can we access the Entity created using .new operator in another rule sheet without using collections?

This question is answered

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?

Verified Answer
  • Click for enlarged view

All Replies
  • Click for enlarged view

  • 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.