You can transform an object of the Task type into an object of the Subprocess type.
Procedure
Open a BPMN diagram containing an object of the Task type.
Click this object.
Activate the BPMN tab bar.
Click Activity > Transform task into subprocess.
The object of the Task type is transformed into a subprocess. The object symbol changes accordingly.