| The MCC global entity instance (ie, the 0) is of type phase4name. The
value 0 indicates "the current MCC, the one on your system".
In the future when MCC becomes distributed, you might say:
TEST MCC SWORD1 YOURMM
which would route the request to node SWORD1 and test the YOURMM module
installed on that system.
/keith
|
|
FYI, the datatype passed on an instance can be found in the
dictionary.
manage/tool/dict
show class <class_name> definition instance_datatype
instance_datatype gives a list, by attribute code, of the potential
identifiers the user can use to enter the class instance. Which one
is passed is determined by the syntax of what the users enters. The FCL
starts with the first id in the instance_datatype list and sees if the
user entered syntax fits the data type. Each attribute inm the list
is tried until a match is found or the list is exhausted (which would
return an error instead of dispatching).
jill
|
| Aha!
Now it has perfect sence, thanks to Keith's explanation in .1. Together with
Jill's reply it also explains why if I type
TEST MCC S123456 YOURMM
i.e. anything longer then 6 characters for the instance name,
mcc_l_dt field will be set to MCC_K_DT_FULL_NAME.
Keith, taking this into account, the following piece of code in
MCC_YOURMM__SHOW_CHAR_MCC.h and MCC_YOURMM__TEST_MCC.h
static dt_valid_in_entity_args valid_in_entity_args[] =
{ MCC_K_CLASS_MCC, CAV_V_INST_NO_WILDCARD, MCC_K_DT_PHASE4NAME,
MCC_K_CLASS_YOURMM_AM, CAV_V_INST_NULL, MCC_K_DT_NULL,
CAV_K_END_OF_LIST };
should be changed into
static dt_valid_in_entity_args valid_in_entity_args[] =
{ MCC_K_CLASS_MCC, CAV_V_INST_NO_WILDCARD, MCC_K_DT_PHASE4NAME,
MCC_K_CLASS_YOURMM_AM, CAV_V_INST_NULL, MCC_K_DT_NULL,
CAV_K_RECORD_SEPARATOR, CAV_K_ENTITY_HEIR, CAV_K_RECORD_SEPARATOR,
MCC_K_CLASS_MCC, CAV_V_INST_NO_WILDCARD, MCC_K_DT_FULL_NAME,
MCC_K_CLASS_YOURMM_AM, CAV_V_INST_NULL, MCC_K_DT_NULL,
CAV_K_RECORD_SEPARATOR, CAV_K_ENTITY_COMB, CAV_K_RECORD_SEPARATOR,
CAV_K_END_OF_LIST };
Jill, I did as you have suggested, but have to admit that I don't now how to
interpret the result:
DAP> SHOW CLASS MCC DEFINITION INSTANCE_DATATYPE
Definition Name = INSTANCE_DATATYPE
Type = L Length = 4 Count = 2 Defined = TRUE Class = S
value[1] = 13
value[2] = 1
Would you, please, enlighten me. What are these values 13 and 1? And how may I
to figure out that MCC instance data type may be MCC_K_DT_PHASE4NAME or
MCC_K_DT_FULL_NAME?
Thank you,
Gene
|