The "context" is assigned uniquely to the
group of processes.
The group of processes consists of:
- always the
individual process D2000 EventHandler
(without using the parameter
--batch_mode) or
- in case of the active pictures - a triplet of processes D2000 HI (HIP),
HIS and D2000 Server
Event Executor (SEE).
If process
D2000 EventHandler is started with the parameter
--batch_mode,
"context" is assigned uniquely to a group of events, which are
opened with the same instance number
(
OPENEVENT), not to whole process. The parameter
enables the run of several events on the one EventHandler, and each of them
can use own
"context".
In the case of identical instance numbers, the "context" is
mutual shared (is common) and the conditions for implementation of database
operation are therefore the same.
The context represents the group of uniquely named parameters where
every parameter has a value. It is created by first usage of
DB_SET_PROCESS_PARAMS action. It is handled by
D2000 Server.
The context is terminated after finishing the last process from the
proper group. The contents of context is replicated automatically to all
the running
D2000 DBManager
processes.
Before executing any database command, which was initiated within context,
D2000 DbManager, inserts its contents into the table
D2000_PROCESS_PARAMS. It
inserts the parameter name into the column
PARAM_NAME and its value into the column
PARAM_VALUE. DbManager
creates the table
D2000_PROCESS_PARAMS when it is used for the
first time.