User Tools

Site Tools


bpwiki:process_travel_booking

Travel Booking

Travel Booking diagram example from BPMN 2.0 by Example, page 27.

++++ Travel Booking code |

{
	“events”: {
		“start”: {
			“se_6_53”: {
				“type”: “message”,
				“name”: “Receive Customer Flight and Hotel Room Reservation Request”
			}
		},
		“intermediate”: {
			“ie_6_439”: {
				“type”: “timer”,
				“name”: “24 hours”
			},
			“ie_6_456”: {
				“type”: “message”,
				“name”: “Cancel Request”
			},
			“ie_6_473”: {
				“type”: “message”,
				“name”: “Customer make Selection”
			},
			“ie_6_660”: {
				“type”: “timer”,
				“name”: “24 Hours”
			},
			“ie_6_1461”: {
				“type”: “error”,
				“name”: “Booking  Error 2”
			},
			“ie_6_1549”: {
				“type”: “error”
			},
			“ie_6_1566”: {
				“throwing”: true,
				“type”: “compensation”,
				“name”: “Booking”
			}
		},
		“end”: {
			“ee_6_677”: {
				“type”: “message”,
				“name”: “Request  Cancelled”
			},
			“ee_6_1533”: “Booking Successfully Completed”,
			“ee_6_1677”: “Booking Not Completed”,
			“ee_6_1742”: “”
		}
	},
	“activities”: {
		process_search: {
			“name”: “Search and Evaluate”,
			“activities”: {
				“task_6_99”: “Search Flights based on Customer Request”,
				“task_6_203”: “Search Hotel Rooms based on Customer Request”,
				“task_6_150”: “Evaluate Flights within Customer Criteria”,
				“task_6_254”: “Evaluate Hotel Rooms within Customer Criteria”
			},
			“flow”: {
				“f6_305”: [
					“task_6_99”,
					“task_6_150”
				],
				“f6_307”: [
					“task_6_203”,
					“task_6_254”
				]
			},
			“markers”: [
				“subprocess”
			]
		},
		“task_6_309”: “Package Flights and Hotel Rooms for Customer Review”,
		“task_6_360”: {
			“type”: “send”,
			“name”: “Present  Flights and Hotel Rooms Alternatives  to Customer”
		},
		“task_6_490”: “Update Customer Record (Request Cancelled)”,
		“task_6_541”: {
			“type”: “send”,
			“name”: “Notify Customer to Start Again”
		},
		“task_6_609”: {
			“type”: “send”,
			“name”: “Request Credit Card Information from Customer”,
			“boundary”: [
				“ie_6_660”
			]
		},
		process_booking: {
			“events”: {
				“start”: {
					“se_6_766”: “”
				},
				“intermediate”: {
					“ie_6_885”: {
						“type”: “compensation”,
						“name”: “Flight”
					},
					“ie_6_902”: {
						“type”: “compensation”,
						“name”: “Hotel”
					}
				},
				“end”: {
					“ee_6_1027”: “Reservation Completed”
				}
			},
			“activities”: {
				process_updateccinfo: {
					“events”: {
						“start”: {
							“se_6_1078”: {
								“nonInterrupting”: true,
								“type”: “message”
							}
						},
						“end”: {
							“ee_6_1142”: “”
						}
					},
					“activities”: {
						“task_6_1091”: “Update Credit Card Info”
					},
					“flow”: {
						“f6_1156”: [
							“se_6_1078”,
							“task_6_1091”
						],
						“f6_1158”: [
							“task_6_1091”,
							“ee_6_1142”
						]
					},
					“markers”: [
						“subprocess”
					],
					“activityType”: “event”,
					“name”: “Update Credit Card Information”
				},
				process_handlecompensation: {
					“events”: {
						“start”: {
							“se_6_1193”: {
								“type”: “compensation”,
								“name”: “Booking”
							}
						},
						“intermediate”: {
							“ie_6_1206”: {
								“throwing”: true,
								“type”: “compensation”,
								“name”: “Flight”
							},
							“ie_6_1223”: {
								“throwing”: true,
								“type”: “compensation”,
								“name”: “Hotel”
							}
						},
						“end”: {
							“ee_6_1291”: “”
						}
					},
					“activities”: {
						“task_6_1240”: “Update Customer Record”
					},
					“flow”: {
						“f6_1305”: [
							“se_6_1193”,
							“ie_6_1206”
						],
						“f6_1307”: [
							“ie_6_1206”,
							“ie_6_1223”
						],
						“f6_1309”: [
							“ie_6_1223”,
							“task_6_1240”
						],
						“f6_1311”: [
							“task_6_1240”,
							“ee_6_1291”
						]
					},
					“markers”: [
						“subprocess”
					],
					“activityType”: “event”,
					“name”: “Handle Compensation”
				},
				process_handlebookingerror: {
					“events”: {
						“start”: {
							“se_6_1346”: {
								“type”: “error”,
								“name”: “Booking Error 1”
							}
						},
						“intermediate”: {
							“ie_6_1381”: {
								“throwing”: true,
								“type”: “compensation”,
								“name”: “Flight”
							},
							“ie_6_1398”: {
								“throwing”: true,
								“type”: “compensation”,
								“name”: “Hotel”
							}
						},
						“end”: {
							“ee_6_1437”: {
								“type”: “error”,
								“name”: “Booking  Error 2”
							}
						}
					},
					“gateways”: {
						“gw_6_1359”: {
							“type”: “parallel”
						},
						“gw_6_1415”: {
							“type”: “parallel”
						}
					},
					“flow”: {
						“f6_1451”: [
							“se_6_1346”,
							“gw_6_1359”
						],
						“f6_1453”: [
							“gw_6_1359”,
							“ie_6_1381”
						],
						“f6_1455”: [
							“gw_6_1359”,
							“ie_6_1398”
						],
						“f6_1457”: [
							“ie_6_1381”,
							“gw_6_1415”
						],
						“f6_1459”: [
							“ie_6_1398”,
							“gw_6_1415”
						],
						“f6_1478”: [
							“gw_6_1415”,
							“ee_6_1437”
						]
					},
					“markers”: [
						“subprocess”
					],
					“activityType”: “event”,
					“name”: “Handle Booking Error”
				},
				“task_6_779”: {
					“name”: “Book Flight”,
					“boundary”: [
						“ie_6_885”
					]
				},
				“task_6_830”: {
					“name”: “Book Hotel”,
					“boundary”: [
						“ie_6_902”
					]
				},
				“task_6_919”: {
					“markers”: [
						“compensation”
					],
					“name”: “Cancel Flight”
				},
				“task_6_970”: {
					“markers”: [
						“compensation”
					],
					“name”: “Cancel Hotel”
				}
			},
			“flow”: {
				“f6_881”: [
					“se_6_766”,
					“task_6_779”
				],
				“f6_883”: [
					“se_6_766”,
					“task_6_830”
				],
				“f6_1041”: [
					“task_6_779”,
					“ee_6_1027”
				],
				“f6_1043”: [
					“task_6_830”,
					“ee_6_1027”
				],
				“f6_1021”: [
					“ie_6_885”,
					“task_6_919”
				],
				“f6_1023”: [
					“ie_6_902”,
					“task_6_970”
				]
			},
			“markers”: [
				“subprocess”
			],
			“name”: “Booking”,
			“boundary”: [
				“ie_6_1461”
			]
		},
		“task_6_1480”: {
			“name”: “Charge Credit Card”,
			“boundary”: [
				“ie_6_1549”
			]
		},
		“task_6_1626”: {
			“type”: “send”,
			“name”: “Notify Customer Invalid Credit Card”
		},
		“task_6_1620”: {
			“type”: “send”,
			“name”: “Notify Customer Failed Booking”
		}
	},
	“gateways”: {
		“gw_6_415”: {
			“type”: “event”
		},
		“gw_6_709”: “”,
		“gw_6_1585”: “Retry Limit Exceeded?”,
		“gw_6_594”: “Retry Limit Exceeded?”
	},
	“flow”: {
		“f6_201”: [
			“se_6_53”,
			“process_search”
		],
		“f6_411”: [
			“process_search”,
			“task_6_309”
		],
		“f6_413”: [
			“task_6_309”,
			“task_6_360”
		],
		“f6_437”: [
			“task_6_360”,
			“gw_6_415”
		],
		“f6_592”: [
			“task_6_541”,
			“task_6_490”
		],
		“f6_691”: [
			“ie_6_456”,
			“task_6_490”
		],
		“f6_693”: [
			“gw_6_415”,
			“ie_6_456”
		],
		“f6_697”: [
			“gw_6_415”,
			“ie_6_439”
		],
		“f6_701”: [
			“gw_6_415”,
			“ie_6_473”
		],
		“f6_695”: [
			“task_6_490”,
			“ee_6_677”
		],
		“f6_699”: [
			“ie_6_439”,
			“task_6_541”
		],
		“f6_703”: [
			“ie_6_473”,
			“task_6_609”
		],
		“f6_705”: [
			“ie_6_660”,
			“task_6_541”
		],
		“f6_731”: [
			“task_6_609”,
			“gw_6_709”
		],
		“f6_1025”: [
			“gw_6_709”,
			“process_booking”
		],
		“f6_1531”: [
			“process_booking”,
			“task_6_1480”
		],
		“f6_1547”: [
			“task_6_1480”,
			“ee_6_1533”
		],
		“f6_1583”: [
			“ie_6_1549”,
			“ie_6_1566”
		],
		“f6_1607”: [
			“ie_6_1566”,
			“gw_6_1585”
		],
		“f6_1609”: [
			“gw_6_1585”,
			“task_6_609”,
			“No”
		],
		“f6_1616”: [
			“ie_6_1461”,
			“gw_6_594”
		],
		“f6_1618”: [
			“gw_6_594”,
			“gw_6_709”,
			“No”
		],
		“f6_1691”: [
			“gw_6_1585”,
			“task_6_1626”,
			“Yes”
		],
		“f6_1693”: [
			“task_6_1626”,
			“ee_6_1677”
		],
		“f6_1740”: [
			“gw_6_594”,
			“task_6_1620”,
			“Yes”
		],
		“f6_1756”: [
			“task_6_1620”,
			“ee_6_1742”
		]
	}
}

++++



bpwiki/process_travel_booking.txt · Last modified: 2017/09/19 14:31 (external edit)