Patent ID: 8838682

Claim:
A method for providing a service composed of subtasks in a peer-to-peer network, comprising: forming a group by assigning a plurality of peer devices to the group, the group being defined by a predetermined subtask, each peer device assigned to the group configured to execute the predetermined subtask; publishing in the peer-to-peer network by a peer device requesting a composed service a sequence of subtasks to be executed and specifications of the peer devices executing the respective subtasks; selecting a peer device as a function of the published sequence of subtasks and the published specifications in the group, the selected peer device executes the respective subtask and selection of selected peer devices; publishing a ComposedServiceResource comprising the sequence of the subtasks used for executing the composed service which is a criteria for the selection of the executing peer devices, chaining of the subtasks and execution parameters for the subtasks, publishing a SubtaskResource for requesting the subtask to be executed last in the sequence of subtasks by the peer device requesting the composed service, wherein an identification of the peer device requesting the composed service as a transfer peer device for a subtask result is written from the requested subtask to the SubtaskResource, and selection of the peer device of the group which has to execute the requested subtask; and publishing of a further SubtaskResource for requesting the subtask respectively to be executed precedingly in the sequence of subtasks by the selected peer device which executes the subtask respectively to be executed subsequently in the sequence of subtasks, wherein an identification of the peer device requesting the subtask as a transfer peer device for a subtask result is written from the requested subtask to the SubtaskResource, and selection of the peer device of the group which has to execute the requested subtask.