Sometimes you may need to filter incoming and/or outcoming messages by message type – i.e., send and receive only messages of the certain type and discard other ones. Message type checking is implemented by specifying the type of messages that are allowed to be sent and received by the port. Those messages that cannot be cast to the specified message type are discarded.
To make a port
filter incoming/outcoming messages by type