To connect subroutines, open the Properties Editor for an activity and click Subroutine Binding (refer to the following figure).
The User-Added Code Binding window opens when you enter the name of the subroutine, which is to be bound to the activity (refer to the following figure).