Research Article

An Improved Abstract State Machine Based Choreography Specification and Execution Algorithm for Semantic Web Services

Table 5

Items added to WM at each choreography round.

Round 0Name(Peter).
DateOfBirth(19830622).
Gender(Male).
CreditCardNo(1234432156788765).
CreditCardHolder(PETER JACKSON).
CreditCardCVV(123).
flight(F100,Paris,Chicago,23,250).
flight(F101,Paris,Chicago,23,350).
flight(F102,Paris,Chicago,25,400).
flight(F103,Chicago,Paris,29,150).
flight(F104,Chicago,Paris,30,200).
flight(F105,Chicago,Paris,30,150).
DB_CreditCard(876543212345678,PAUL BROWN,123).
DB_CreditCard(1234432156788765,PETER JACKSON,123).

Round 1myRequest:RequestFlight[From->Paris]
myRequest:RequestFlight[To->Chicago]
myRequest:RequestFlight[Departure->23]
myRequest:RequestFlight[Return->30]

Round 2tripChoice(F100,F104,450)
tripChoice(F100,F105,400)
tripChoice(F101,F104,550)
tripChoice(F101,F105,500)

Round 3trip:Trip[Dep->F101]
trip:Trip[Ret->F105]

Round 4question:QuestionByWS[Name->_h592309]
question:QuestionByWS[DateOfBirth->_h592309]
question:QuestionByWS[Gender->_h592309]

Round 5answer:AnswerByGoal[Name->Peter]
answer:AnswerByGoal[DateOfBirth->19830622]
answer:AnswerByGoal[Gender->Male]

Round 6question:QuestionByWS[CreditCardNo->_h592309]
question:QuestionByWS[CreditCardHolder->_h592309]
question:QuestionByWS[CreditCardCVV->_h592309]

Round 7answer:AnswerByGoal[CreditCardNo->1234432156788765]
answer:AnswerByGoal[CreditCardHolder->PETER JACKSON]
answer:AnswerByGoal[CreditCardCVV->123]

Round 8validation:CreditCardValidation[Number->1234432156788765]
validation:CreditCardValidation[Holder->PETER JACKSON]
validation:CreditCardValidation[CVV->123]

Round 9BankYesNoAnswer(Yes)

Round 10reservation:Reservation[Number->11100]
reservation:Reservation[Flight1->F101]
reservation:Reservation[Flight2->F105]