Calculate entity attribute based with microflow

Hello,    I am trying to calculate an entities attribute based on ‘activities’ which are assigned to a patient's treatmentplan. These activities have a costs and the total expenses should be calculated by summing up these costst. I have tried doing this with a microflow, but I don't get any value returned.    This is my domain model: I have tried calculating the attribute ‘Expense’ with this microflow: Is there something wrong with the logic of the microflow?
1 answers


Granit Krasniqi,

why you use  change variable and create variable in microflow directly return $SumCost at End Event