[ |../../index.htm#lansa/ugub_40118.htm]
You are here:

Examples - Other Processes

The following examples apply to other processes that are to appear on (i.e. be attached to) a process's main menu.
Example 1
The introduction to this section described two processes called PROC01 and PROC02 and indicated that they could be "attached" to form a hierarchy that looked like this:
                      __________
                     |          |
                     |  PROC01  |
                     |          |
                     |  Select  |
                     |  FUNC01  |
                     |  FUNC02  |
                     |  FUNC03  |
                     |  PROC02  |
                     |__________|
                          |
       __________________|_________________
  ___|___   __|___   __|___   __|____
 |          | |          | |          | |          |
 |  FUNC01  | |  Func02  | |  FUNC03  | |  PROC02  |
 |_________| |________| |_________| |          |
                                        |  Select  |
                                        |  FUNC04  |
                                        |  FUNC05  |
                                        |__________|
                                             |
                                        ____|_____
                                   ___|___   __|____
                                  |          | |          |
                                  |  FUNC04  | |  FUNC05  |
                                  |_________| |_________|
 
To do this, the definition of PROC01 would have to be altered using the "other process" facility like this:
 
   Display   Attached      Attached 
   Sequence  Process       Function   Description 
   10        PROC02        *ALL
 
 
 
Example 2
The introduction to this section also described how functions FUNC04 and FUNC05 from process PROC02 could be directly attached to process PROC01 in a hierarchy like this:
 
                           __________
                          |          |
                          |  PROC01  |
                          |          |
                          |  Select  |
                          |  FUNC01  |
                          |  FUNC02  |
                          |  FUNC03  |
                          |  FUNC04  |
                          |  FUNC05  |
                          |__________|
                               |
      ________________________|________________________
 ___|___   __|___   __|___   __|___   __|____

          

 

          

 

          

 

          

 

          

  FUNC01  

 

  FUNC02  

 

  FUNC03  

 

  FUNC04  

 

  FUNC05  

          

 

          

 

          

 

 (PROC02) 

 

 (PROC02) 

__________

 

__________

 

__________

 

__________

 

__________

 
To do this, the definition of PROC01 would be have to be altered using the "other process" facility like this:
 
   Display   Attached      Attached 
   Sequence  Process       Function   Description 
   10        PROC02        FUNC04  
   20        PROC02        FUNC05  
 
Example 3
The introduction to this section described a more complex hierarchy that involved three processes like this:
 
                     __________
                    |          |
                    |  PROC01  |
                    |          |
                    |  Select  |
                    |  FUNC01  |
                    |  FUNC02  |
                    |  FUNC03  |
                    |  PROC02  |
                    |__________|
                         |
      __________________|_________________
 ___|___   __|___   __|___   __|____

          

 

          

 

          

 

          

  FUNC01  

 

  FUNC02  

 

  FUNC03  

 

  PROC02  

__________

 

__________

 

__________

 

          

                                       |  Select  |
                                       |  FUNC04  |
                                       |  FUNC05  |
                                       |  PROC03  |
                                       |__________|
                                            |
                                 __________|___________
                           ____|__   __|___   __|____
                          |          | |          | |          |
                          |  PROC03  | |  FUNC04  | |  FUNC05  |
                          |          | |_________| |_________|
                          |  Select  |                           
                          |  FUNC06  |                         
                          |  FUNC07  |
                          |__________|
                                |
                          _____|____
                     ___|___   __|____
                    |          | |          |
                    |  FUNC06  | |  FUNC07  |
                    |_________| |_________|
 
To do this, the definition of PROC01 would be have to be altered using the "other process" facility like this:
 
   Display   Attached      Attached 
   Sequence  Process       Function   Description 
   10        PROC02        *ALL
 
Then the definition of process PROC02 would have to be altered like this:
 
   Display   Attached      Attached 
   Sequence  Process       Function   Description 
   10        PROC03        *ALL
 
[ |../../index.htm#lansa/ugub_40118.htm]