When this function is called, there is also an event generated called chflowportname. In our example, it would be chX. In order to be able to react to this event, you must define an event with this name in your model.
For both of these functions, the first letter of the flow port name is uppercase even if the actual name of the flow port begins with a lower-case letter.