Figure 4.4 shows some examples to explain the life-cycle model. The life-cycles of five activity instances are shown: a, b, c, d, and e. a is first scheduled for execution (i.e., an event e1 with #trans(e1) = schedule and #activity(e1) = a occurs), then the activity is assigned to a resource (i.e., an event e2 with #trans(e2) = assign and #activity(e2) = a occurs). Later the activity is started by this resource, and finally the activity completes. Note that four events were recorded for this activity instance. Activity instance b has seven events associated to it. Compared to a the activity is reassigned (i.e., the resource that is supposed to execute the activity is changed), suspended (temporarily halted), and resumed. Of course it is possible to skip stages in the transactional life-cycle model, because events are not recorded or because certain steps are not necessary. Activity instance d in Fig. 4.4 has just two events; e just one, i.e., for e only the completion of the activity instance is recorded. Transaction type “autoskip” refers to an action by the system bypassing the activity. Transaction type “ manualskip ” refers to resource initiated skipping. Transaction types “abort_activity” and “abort_case” correspond to aborting the activity or the whole case. A “withdraw” event signals the situation in which the activity is canceled before it was started. Figure 4.3 shows all transaction types, their enabling, and their effect. For example, according to the transactional life-cycle model, “abort_activity” is only possible when the activity instance is running (i.e., started, suspended, or
รูปที่ 4.4 แสดงตัวอย่างการอธิบายแบบจำลองวงจรชีวิต แสดงวงจรชีวิตของอินสแตนซ์ของกิจกรรม 5: a, b, c, d, e. และเป็นก่อนการจัดกำหนดการสำหรับการดำเนินการ (e1 เช่นเหตุการณ์ใช้เป็นคน มี #trans(e1) =กำหนดการและ #activity(e1) =เกิด), แล้วกิจกรรมที่กำหนดให้กับทรัพยากร (e2 เช่น เหตุการณ์ใช้เป็นคน มี #trans(e2) =กำหนดและ #activity(e2) =การเกิด) ภายหลังการเริ่มต้นกิจกรรม โดยทรัพยากรนี้ และสุดท้าย กิจกรรมเสร็จสิ้น หมายเหตุที่ 4 เหตุการณ์บันทึกสำหรับอินสแตนซ์ของกิจกรรมนี้ กิจกรรมตัวอย่าง b มี 7 เหตุการณ์ที่เกี่ยวข้องกับ เมื่อเทียบกับการกำหนดกิจกรรม (เช่น ทรัพยากรที่ควรจะดำเนินการกิจกรรมที่มีการเปลี่ยนแปลง), หยุดชั่วคราว (ชั่วคราว halted), และหยุดไป แน่นอนจะสามารถข้ามขั้นตอนในวงจรชีวิตของทรานแซคชันรุ่น เพราะไม่มีบันทึกเหตุการณ์ หรือบางขั้นตอนไม่จำเป็น กิจกรรม d อินสแตนซ์ใน Fig. 4.4 มีเพียงสองเหตุการณ์ อีเพียงหนึ่ง เช่น การบันทึกเสร็จสมบูรณ์ของอินสแตนซ์กิจกรรมอี ธุรกรรมชนิด "autoskip" หมายถึงการดำเนินการตามระบบที่ไม่ผ่านกิจกรรม ธุรกรรมชนิด "manualskip" หมายถึงทรัพยากรเริ่มข้าม ธุรกรรมชนิด "abort_activity" และ "abort_case" สอดคล้องกับการยกเลิกกิจกรรมหรือกรณีทั้งหมด เหตุการณ์ที่ "ถอน" สัญญาณสถานการณ์ซึ่งกิจกรรมที่ถูกยกเลิกก่อนเริ่ม รูปที่ 4.3 แสดงชนิดของธุรกรรมทั้งหมด การเปิด และผลที่เกิดขึ้น ตัวอย่าง ตามวงจรชีวิตของทรานแซคชันรุ่น "abort_activity" คือ สามารถทำได้เมื่อรันอินสแตนซ์ของกิจกรรม (เริ่ม หยุดชั่ว คราว เช่น หรือ
การแปล กรุณารอสักครู่..
