Hook: Define Quit Conditions For Process
Requirement
        A process is needed, that cannot be cancelled or suspended or that
        places non-standard conditions on the two operations.
        
          By default, processes can only be suspended, but not cancelled, by the
          user. This means, it is possible to shut down the Shop regardless of
          whether processes are running, provided the Shop state is saved upon
          shutdown and restored upon restart. If you want processes that cannot
          be extended over several sessions, or processes that can be cancelled
          at any time by closing the Shop, or if you need to place any other
          condition (like checking consistency) upon process cancellation, use
          this Hook.
        
      
Method of AdaptationReplace Feature 
Level of SupportParameter Pattern
 HotSpotProcesses
Hooks usedDefine a new process
, 
Incorporate a new process
ParticipantsNewProcess
Changes
- 
          NewProcess = 
Define a new process
[NewProcess].
        
 
- 
          NewProcess.canQuit overrides
          
            SaleProcess.canQuit
          
          .
        
 
- 
          
Incorporate a new process
[Process = NewProcess].
        
 
Comments
- 
        The 
fContextDestroy
 parameter gives information on the
        reason why the process is to be cancelled. If it is true, the reason is
        an explicit closing of the process's context, and you can assume that
        the process state will not be made persistent. If it is false, you can
        assume that the process's state will be made persistent.