Community
Participate
Working Groups
it would be handy to have a private message definition in a protocol. On the sender side this message is visible just in the port context (e.g. hook funktion)not in the actor context. This feature would enhance the usage of port hooks and it would be possible to hide messages from the user.
The hook is free to omit delivering to the event receiver. I think this is sufficient to implement the desired behavior, right?
The behavior can be implemented but it is not very consistent that the message is available for the sender (it will be shown in the message drop down list as well as in the java autocompletion) but will never be sent due to the hook. In addition, to implement filters and put this filters to operations it would be creat to put port operations to the message list instead of "private" messages. I will attach an example to the bug. A logging Service that implements a filter for the log level. (In reply to comment #1) > The hook is free to omit delivering to the event receiver. > I think this is sufficient to implement the desired behavior, right?
Created attachment 207152 [details] A logging service to demonstrate the need Using this Service it would be nice to use the "log" operation the same way as a normal message. But it must be an operation due to the fact that filtering must take place on the sender context. The user should not care about this. On the other hand the "internalLog" message is visible to the user but should never be used due to the missing filter functionality.
Implemented a solution with private Messages and Operations in PortClasses that can send messages (of course also private ones). This is done with 8401c69d38c05bf1ed5a51f6aac790b1098eadd8
closing bugs that went into 0.2.0M1