you're right. Now it's working as desired (without any further changes). Actually, I also do not really understand the background, but for now I'm quite happy and can go the next step.
Original Message:
Sent: Wed February 22, 2023 08:29 AM
From: Markus Nordstrand
Subject: Statechart receiving signal in Ports
I don't know these things good enough to give a rationale behind my suggestion, but I use a different component than the DefaultComponent when building. Instead of using the DefaultComponent I have another component (EventsAndIFB) directly in the Package where my blocks, interfaceblocks etc. are:

This is the Scope settings I use for that componenet:

In the configuration of the componenet and in the Initilization tab I leave Initial instances at "Explicit" and don't check any boxes:

When you build, you should select the component (so not DefaultComponent):

Hope this helps!
------------------------------
Markus Nordstrand
------------------------------
Original Message:
Sent: Wed February 22, 2023 05:00 AM
From: Robert Fromm
Subject: Statechart receiving signal in Ports
Hello Markus,
thanks for the feedback.
Basically my system was setup like you described. Indeed, yet I did not check the "Behavior" checkbox in the ports definition. I thought a proxy port does not implement behavior.
Anyhow, now I implemented your example.
The interface block is of Class Type "Regular" 
Indeed, I get the error 
I also tried the other settings for the interface's ClassType but the error persists.
The Component settings is 
The initialization is

The language used is C++ with Cygwin compiler. Unfortunately I understand C++ just very basically, far away from being an expert. Any hint what causes that problem?
Best regards
Robert
------------------------------
Robert Fromm
Original Message:
Sent: Wed February 22, 2023 02:44 AM
From: Markus Nordstrand
Subject: Statechart receiving signal in Ports
I always use interfaceBlocks to type the proxy ports and for the communication to work, the event reception needs to be specified on the operations tab in that interfaceBlock. Also, that event reception needs to be stereotyped with the <<directedFeature>> stereotype and the Feature Direction set appropriately.
Consider the example below where the Sender is sending the Event to the Receiver via a proxy port typed by an interfaceBlock every 1000 ms and the Receiver changes it state from WaitingForEvent to EventHappened every time. Note that conjugation of the proxy port and the corresponding "Feature Direction" of the event reception. If the conjugation would be reversed so that pReciever is conjugated and pSender is unconjugated, the Feature Direction of the event reception would need to be "provided" for it to work the same way.







------------------------------
Markus Nordstrand