process-flexibility.com

Wednesday, 12 June 2013 16:04

Pattern AP8: Embed Process Fragment in Loop

Using AP8 an existing process fragment can be embedded in a loop to allow for its repeated execution. AP8 can be realized based on patterns AP1 (Insert Process Fragment), AP11 (Add Control Dependency), and AP12 (Remove Control Dependency). However, with AP8 the number of operations needed for accomplishing such a change can be reduced.

Description

Adds a loop construct to a process schema which surrounds an existing process fragment.

Example

In the treatment process of a particular patient a lab test shall be not only performed once (as in the standard treatment process), but be repeated daily due to special risks associated with the patient.

Problem

A process fragment is actually executed at most once, but needs to be executed recurrently based on some condition.

AP8

Implementation

This adaptation pattern can be implemented based on Patterns AP1 (insert process fragment), AP11, and AP12 (add / remove control dependency). Alternatively, implementation can be based on change primitives.

Related Patterns

Embed Process Fragment in Conditional Branch (AP10)

Animation

View Animation

Read 923 times
 

Get the Book!

book cover small