the scoping can sometimes be weird/unexpected in SysML. In this case, this is resolved relative to the parent AssignmentActionUsage and not completeMission as one would expect. It is likely that the specification just did not find all the weird edge cases with the deep hidden layers the syntax creates.
That makes sense, thank you for the info. I also just found https://cst.syside.app/, what an awesome tool. I am curious how you can tell from the tree which parent “this” is being resolved in.
The code you linked hints that it might be possible to specify exactly which parent should be used. I am not sure how to do that but will look into it, and update if I find the answer! Thank you.