| How to access to attributes in other classes? [message #763690] |
Sat, 10 December 2011 05:24  |
Forenmailadresse Messages: 3 Registered: December 2011 |
Junior Member |
|
|
Hello community.
First of all, I have to say, that my english isn't very well, sorry for that.
Second part, I have to say is, that I'm new to OCL, that's the reason for my question and I hope, you can help me solving the problem.
I try to create a "post"-OCL expression for the phenomenon "sndCreatePollReq". In this expression, there should be an pollDS-DataSet in the PollDataBase, where title, description and options are the same as the parameters sended with "sndCreatePollReq".
Hope, you can see the following screenshot.

The problem is, that I have no idea, how to do it right. How can I get access to the pollDS-DataSets in the PollDataBase?
I tried this:
Set {self.PollDataBase.pollDS}->exists(pollDS) and
webPage^sndHandledPollDS()
And it throws the following error message: "Unrecognized variable: (pollDS)"
How to declare a varialbe from type PollDataSet, of which pollDS should be?
Is there a realy good tutorial out there, where I could learn the expressions used in OCL? Such as "->" an how to use them right?
Greetings and thanks for help, Stefan
[Updated on: Sat, 10 December 2011 05:27] Report message to a moderator
|
|
|