Download Serendiplang

Transcript
Now open the file sample.road (this should be opened by default)
Writing a ROAD description
In the sample.road start typing the ROAD description as given below. Or else enter the sample code
given below as an alternative.
Organization MyOrg;
/* One and only process definition. But can have more */
ProcessDefinition myProcess{
CoS "eComplainRcvd";
CoT "eCaseClosed";
BehaviorRef bTowing;
}
/* One and only behavior unit. But can have more */
Behavior bTowing{
Task tAnalyze performedBy CO{
InitOn "eComplainRcvd";
UsingMsgs CO_MM.complain.Req;
UponTriggers "eTowRequired";
ResultingMsgs CO_TT.towRequest.Req;
}
Task tTow performedBy TT{
InitOn "eTowRequired";
UsingMsgs CO_TT.towRequest.Req;
UponTriggers "eTowDone";
ResultingMsgs CO_TT.towRequest.Res;
}
Task tNotify performedBy CO{
InitOn "eTowDone";
UsingMsgs CO_TT.towRequest.Res;
UponTriggers "eCaseClosed";
ResultingMsgs CO_TT.towRequest.Res;