send-action-parameters
Available in: SysML
This checks that send actions have a payload and sender.
Note that receiver at least for now is optional to match the description of
Actions::SendAction:
A
SendActionis anActionused to typeSendActionUsages. It initiates anoutgoingTransferFromSelffrom a designated senderOccurrencewith a givenpayload, optionally to a designatedreceiver.
Specification
A
SendActionUsagemust have at least three ownedinputparameters, corresponding to itspayload,senderandreceiver, respectively (whether or not they haveFeatureValues).
Example
action {
send; // error: A send action must have at least 2 owned input parameters, expected 2 more
}
Add a payload, and either a sender, or receiver:
occurrence r;
action {
send 4 to r; // ok
}
The missing sender or receiver is constructed as an empty element automatically.