how to reference an attribute accross two entities

0
Hi,   Consider my domain:   I have an object that I need to change the attribute CaloriesBurned using the formula below: How do I get to the CaloriesPerUnit attribute? Please advise, Daniel
asked
2 answers
0

This is because in activity “Change Object” you can not retrieve new data. If you could, the Xpath would be

$NutritionTracker/Quantity * $NutritionTracker/$NutritionTracker_$NutritionInventory/CaloriesPerUnit 

But you will see the last ‘/’ turn red. Your solution is correct: first retrieve the new data, then “Change Object”

answered
0

Here is the solution:

I don’t think there is a valid xpath to get to the caloriesperunit attribute

So...

You need to retrieve nutritioninventory record by association using:

  

 

Then in the Change object, to calculate the new caloriesBurned:

 

 

So please advise if there is a better way to do this.

Thanks,

Daniel

 

answered