The objective of this project is to propose algorithms derived from distributed AI as a support to the decision on the processing of data generated by the objects of an IIoT network, depending on the level of criticality of the application, the nature of the object that generated the data, the state of the neighboring nodes (other objects or fog nodes), etc. In addition to guaranteeing the QoS, the proposed algorithms must also minimise energy consumption.