Previous Topic: General ConsiderationsNext Topic: Operative and Nonoperative Dialogs


Application Thread

The current sequence of operative functions or dialogs in an application is called the application thread. A single dialog can occur more than once in an application structure and can execute more than once within an application thread, whether or not the function or dialog remains operative.

Control Command Processing

      Example 1               Example 2
       ┌────────────┐          ┌─────────────┐
       │            │          │             │
       │  CA─ADS    ◄───┐      │  CA─ADS     │
       │            │   │      │             │
       └─────┬──────┘   │      └─────┬───────┘
             │          │            │
             │          │            │
       ┌─────▼──────┐   │      ┌─────▼───────┐
       │            │   │      │             │
       │  RDCUST#   │   │   ┌──►  RDCUST#    │
       │            │   │   │  │             │
       └─────┬──────┘   │   │  └─────┬───────┘
             │INVOKE    │   │        │INVOKE
             │          │   │        │
       ┌─────▼──────┐   │   │  ┌─────▼───────┐
       │            │   │   │  │             │
 ┌─────►  UPDATEC   │───┘   │  │  UPDATEC    ◄──────────────────────────┐
 │     │            │LEAVE  │  │             │                          │
 │     └─────┬──────┘       │  └─────┬───────┘                          │
 │           │LINK          │        │INVOKE                            │
 │           │              │        │                                  │
 │     ┌─────▼──────┐       │  ┌─────▼───────┐         ┌───────────┐    │
 │     │            │       │  │             │TRANSFER │           │    │
 └─────┤  UPDATEO   │       └──┤  UPDATEO    ├─────────►  ADDORDR  │────┘
RETURN │            │   RETURN │             │         │           │RETURN
TO TOP └────────────┘   TO TOP └─────────────┘         └───────────┘