Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Creating and Initializing Events | Creating Events | Field Type Checking
 
Field Type Checking
When you create an event with a valid Broker client parameter, the following field type checking rules will be applied to the event.
1. All event fields will appear to be set on the event at the time the event is created.
2. You are not allowed to set a field which does not exist for the event type.
3. You cannot set an event field with a type other than that defined by the event type.
When you create an event with a NULL BrokerClient parameter, the following type checking rules will be applied to the event.
1. You may set fields with any field name and with any data type.
2. Any attempt to retrieve an event field that was not previously set will return an AW_ERROR_FIELD_NOT_FOUND error.
3. Once a field has been set, you are not allowed to change the field's data type without first clearing the field, using the awClearEventField function, or clearing the entire event, using the awClearEvent function.
Note:
For most applications, you should create an event within the context of a Broker client so that type checking will occur.