The problem of mechanical technology design for machining parts in granulated media in the conditions of digital produc-tion is viewed. The peculiarities of part process in abrasive media and with steel balls (finish- machining and strengthening treatment techniques) are shown. Dependences for determining the parameters of a single interaction of a medium particle with the surface of a part during processing in granulated media are obtained. Dependences for depth maximizing in cases of particle penetration into the surface of the machined part, the parameters of a single trace, surface roughness, processing time are found. For finish- machining and strengthening treatment techniques for granulated working media, dependences for determining the depth of the hardened layer and the degree of deformation are also obtained. The obtained theoretical dependences have been tested for adequacy through drawing an analogy with the results of experimental studies. During the research, it was found that the developed system of models does not take into account the peculiarities of various processing methods and their dynamics, and shape of the particles of the medium. To account all these parameters, the Rocky DEM ap-plication software package is used. The package allows modeling the processing chamber, the dynamic parameters of the machining process, the number of particles in the working space according to their mass, the shape and dimensions of the particles, the mass and shape of the machined part and its location in the processing chamber, the material of the machined part, the ratio of the mass of the part and the mass of the abrasive medium, some physical properties of the material of the processed part, slip coefficient of the abrasive medium on the part surface, process liquid properties and other parameters. The package made it possible to refine theoretical models and obtain results closer to production conditions. Based on the research carried out and being aimed at their introduction into modern digital production, the design technique of techno-logical processes has been developed and a software product has been proposed allowing to select possible working meth-ods in granulated media (in order of preference) according to the characteristics of the part, and to determine the technolog-ical modes for each of them and characteristics of working environments.