The duration is probably of type string, instead of Decimal as it should be
You made an error in the domain model. You have set the type of Course/Duration to DateTime but it is supposed to be an integer.
for me it doesnt work such solution
i dont know what i am doing wrong, have the rigth type of variable,
but it still doesnt work:
addDays($TrainingEvent/StartDate, $Course/Duration)
(uknown variable, perhaps the variabe is not in the scope)
in the error message there is :
element: chane object activity 'Change 'TrainingEvent" (EndDate)'
i dont know what might be wrong here