JBoss Community Archive (Read Only)

Scribble

Interaction

Interactions in Scribble are based on two assumptions:

<MessageSignature> [from <Role>] [ to <Role> ( "," <Role> )* )]

The following example shows a similar type of interaction as shown in the
'hello world' example.

Customer introduces Supplier;
Order from Customer to Supplier;

In this sample, two roles are declared, with the interaction indicating that
a message of type 'Order' will be sent from role 'Customer' to role 'Supplier'.

placeOrder(Order) from Customer to Supplier;

This example demonstrates an alternative way for the exchanged message to be
specified. In the first sample a message-style was used. In this sample, an
RPC style has been used, specifying the operation name with type parameters.
In this case, only a single typed parameter Order has
been specified, but this could be a comma separated list of one or more
types.

When specifying interactions, it is not possible to just define an operation
name with no type parameters.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:37:58 UTC, last content change 2011-11-13 14:41:44 UTC.