Accept incoming Request
This use case attempts to accept an incoming LocalRequest with the corresponding parameters.
It is advised to check if incoming Request can be accepted in advance.
Parameters
- The
id
of the incoming Request. - The decision for each individual RequestItem expressed as the appropriate Parameters defined in the Data Model.
On Success
- The Request is processed according to the decisions made.
- A Message is sent to the requesting peer which contains the Response to the Request.
- The LocalRequest is returned
On Failure
- The decisions do not match the RequestItems.
- The decisions and values of respective RequestItems do not match the requested or required values, e.g. an email address is wrong.
- A RequestItem that has the
mustBeAccepted
field set totrue
was not accepted or left blank. - A RequestItem of a Request cannot be accepted if its acceptance would lead to the creation of a RelationshipAttribute with the same
key
,owner
andvalue.@type
as a RelationshipAttribute that already exists in the context of the Relationship to thepeer
that sent the Request. The corresponding Request can therefore not be accepted if the RequestItem in question hasmustBeAccepted
set totrue
. However, ifmustBeAccepted
is set tofalse
, the Request can still be accepted by rejecting the RequestItem.