[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

1024.0. "Is text substitutions for enumeration datatype supported?" by PHONE::ALLAIN () Thu May 16 1991 13:58

Hi,

I've read the note 513 and replies .6, .7. I'd like to know if text substitions 
for enumeration datatype is supported now?

I'd like to use it for an event report as argument of an event.

Francois
T.RTitleUserPersonal
Name
DateLines
1024.1one down another to goTOOK::CALLANDERThu May 16 1991 14:2913
    
    Isn't it always true, you fix one thing and someone wants another....
    
    The enumeration problems from not 513.6 and 7 have been corrected,
    but...the V1.1 kit does not handle event report arguments from the
    notification services (when requested using the NOTIFY command), though
    you shouldn't have a problem with the GETEVENT command. The NOTIFY
    command problem (we simply didn't write the code to accept arguments)
    has now been corrected and should be available in the next major
    baselevel.
    
    jill
    
1024.2Sorry for the troubles...PHONE::ALLAINThu May 16 1991 15:0889
I'm using the GETEVENT directive, and I get this:

>>>>>>>>>>>>>>>

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  1 ] (
    [  1 ] (
        [  69 ] (
            [  0 ]             09
            )
        )
    )
AES dump of ENTITY OUT:

depth=2 class code= 1001 instance = �class code= 1017 instance = equipe_line


CMEAGT NMF_NS:.mistral TESTOBJ "equipe_line"
AT 16-MAY-1991 13:25:22 FRANCOIS EVENTS

Successfully received events: !<GetEvent Response>
%MCC-E-NOENTITY,  no corresponding entity instance exists
MCC>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


I don't get the ACCESS VIOLATION, as in note 513 but I must be missing 
something somewhere...

Here is my MS code...

        TYPE totrigEnum = 10190 (addvalue               =  1,
                                 attributeChange        =  2,
                                 enrolObject            =  3,
                                 environmentalAlarm     =  4,
                                 equipmentAlarm         =  5,
                                 deenrolObject          =  6,
                                 processingAlarm        =  7,
                                 removeValue            =  8,
                                 serviceAlarm           =  9,
                                 transmissionAlarm      = 10);


        EVENT PARTITION FRANCOIS EVENTS = 15 :
                SYMBOL = PRT_FRANCOIS_EVENTS,
                EVENT Bip = 69 :
                        DISPLAY = TRUE,
                        SYMBOL = CMEAGT_BIP,
                        TEXT = " BIP Event Argument:  !<Trigger Param>. ",
                        ARGUMENT Trigger Param = 01 : totrigEnum
                                DISPLAY = TRUE,
                                SYMBOL = BIP_EVENT_ARG
                        END ARGUMENT Trigger Param;
                END EVENT Bip; 

			.........

   DIRECTIVE GetEvent = 65 :
        DIRECTIVE-TYPE = EVENT,
        DISPLAY = TRUE,
        SYMBOL = GETEVENT_DIRECTIVE,
        CATEGORIES = (ALL),

        REQUEST
            ARGUMENT Events Wanted = 01 : EventIdList
                ECHO = TRUE,
                DISPLAY = TRUE,
                REQUIRED = TRUE,
                DEFAULT = NO DEFAULT,
                SYMBOL = ARG_GETEVENT_LIST
            END ARGUMENT Events Wanted;
        END REQUEST;

        RESPONSE GetEvent Success = 01 :
            SYMBOL = EVENT_RECEIVED,
            TEXT = " Successfully received events: !<GetEvent Response>",
            ARGUMENT GetEvent Response = 01 : Event_report
                DISPLAY = TRUE,
                SYMBOL = ARG_EVENT_REPORT
            END ARGUMENT;
        END RESPONSE GetEvent Success;

	..............................
                      
1024.3ilv encoding of the event reportTOOK::CALLANDERThu May 16 1991 16:2536
ILV dump of OUT_P:

[  1 ] (
    [  1 ] (
        [  69 ] (
            [  0 ]             09
            )
        )
   

        EVENT PARTITION FRANCOIS EVENTS = 15 :
                SYMBOL = PRT_FRANCOIS_EVENTS,
                EVENT Bip = 69 :
                        DISPLAY = TRUE,
                        SYMBOL = CMEAGT_BIP,
                        TEXT = " BIP Event Argument:  !<Trigger Param>. ",
                        ARGUMENT Trigger Param = 01 : totrigEnum
                                DISPLAY = TRUE,
                                SYMBOL = BIP_EVENT_ARG
                        END ARGUMENT Trigger Param;
                END EVENT Bip; 


You will notice in the ilv encoding that [0] is supplied for the argument
to the event report (code 69), and that "Trigger Param" is defined as
code 1. My guess at looking at this is that that is what is causing your
problem.

The only other question I have is why did you make the event report an FAO type 
argument on the getevent response? Chapter 15 (SRM pg 884) gives the architected
(generic) way in which the common directives should be modeled. The SRM shows
the response as having no reply text, with a single argument of datatype
event_report.

jill
1024.4It's me again...PHONE::ALLAINThu May 16 1991 16:5339
Jill,

I have just changed my code following what you told me in the first part of 
note .3, and I got this...

May be that the MCC I'm using is not the good one. This V1.1.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ILV dump of OUT_P:

[  1 ] (
    [  1 ] (
        [  69 ] (
            [  1 ]             09
            )
        )
    )
AES dump of ENTITY OUT:

depth=2 class code= 1001 instance = �class code= 1017 instance = equipe_line


CMEAGT NMF_NS:.mistral TESTOBJ "equipe_line"
AT 16-MAY-1991 15:41:31 FRANCOIS EVENTS

Successfully received events: !<GetEvent Response>
%MCC-E-DATATYPE_NOT_SU, data type is not supported
MCC>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
About FAO type argument in the getevent response:

I followed the MSL examples given in the SRM page 156. I'll try again without 
this FAO type argument...

I'll let you know.


Francois.
1024.5event report as FAO argTOOK::CALLANDERThu May 16 1991 19:4215
It looks like (you are now getting a data type error) that the error is due 
to the fact that you have the event report as an `fao' argument to the
reply text. Try removing that and see what happens.

$MANAGE/TOOL/DICT
DAP> use class code 1001 subclass code 1017 directive getevent exception code 1
DAP> set definition code 19 TYPE T COUNT 1 LENGTH 19 -
_DAP>  VALUE "Getevent Successful"
DAP> exit

^^^^ I know this is quick and dirty but it will simply remove the argument
substitution. You DON"T need to rebuild the parse tables or anything else
to test this change.

jill
1024.6event report as FAO argPHONE::ALLAINFri May 17 1991 10:125
You're right, it's ok now.

I've removed the Fao argument and it works fine. Thanks a lot for your help.

Francois.