Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Load Balancing and Failover for Publish Operations | Publishing and Delivering Events | Field Type Checking
 
Field Type Checking
When you create an event with a BrokerClusterPublisher reference, the following field type checking rules are applied to the event.
1. All event fields will be set on the event at the time the event is created.
2. You cannot set a field that does not exist for the event type.
3. You cannot set an event field with a data type other than that defined by the event type.
When you create an event with a null BrokerClusterPublisher reference, the following type checking rules are applied to the event.
1. You can set fields with any field name and any data type.
2. Any attempt to retrieve an event field that was not previously set will cause a BrokerFieldNotFoundException exception to be thrown.
3. After a field has been set, you are not allowed to change the field's type without first clearing the event field, using the BrokerEvent.clearField method or clearing the entire event using the BrokerEvent.clear method.