The present invention is related to a process for producing pasta products on long or short pasta production machines. In the course of the procedure a prepared dough is thickened then distributed by putting it into a die. It is pressed through a product shaping opening of the die, then a pasta thread emerging from the opening of the die is additionally shaped by applying an after-shaping unit, and the pasta thread in its final form is cut to a size required. The essence of the process is that the additional shaping of a pasta thread (20) with hollow or solid section emerging from the opening (16) of the die (2) is exclusively performed by controlling, mainly by periodically reducing the section of a pasta thread transferring shaping hole (15) of the after-shaping unit (3) placed in the immediate proximity of the outlet plane of the die opening (16), relatively to the section of the die opening. The invented adapter can be applied to a dough pressure apparatus of a pasta production line. It has at least one die (2) provided with at least one product shaping opening (16), and, in the direction of product progress, an after-shaping piece (3) with at least one shaping hole (15), placed after the die (2). The shaping hole (15) is connected to the opening (16) of the die (2). The essence of the adapter is that the pasta transfer section of the shaping hole (15) of the after-shaping unit (3) can be controlled relative to the section of the die opening (16), it can be favourably reduced periodically.