Example using setOptStr( ) method and PutEventInternal:This example demonstrates getting the value of a message option from an input event and setting a message value on a newly declared event.
process P1{... Task1 { preconditions: Event1 actions: P1::Event1 newEvent newEvent = Event1 string oldValue = Event1.getOptStr("OPT_MSG_TYPE") string newValue = "my new msg type value" // // Event1 had an existing value for the OPT_MSG_TYPE option // stored in "oldValue". // Now overwritethat value with "newValue". // newEvent.setOptStr("OPT_MSG_TYPE", newValue) // // Now Send back into the Engine // PutEventInternal(newEvent)
Copyright © 2002. Sybase Inc. All rights reserved. |
![]() |