You can send messages from an Agile Business Suite method to a NOF program by sending an automatic entry. For the transaction to happen, the originating <<ispec>> class must own a non-persistent attribute that inherits from the target <<ispec>> class. For systems migrated from Enterprise Application Environment 3.x using the AUTO.ENTRY verb, this attribute has been called <target ispec>_Auto. The definition of this attribute is necessary in order to replicate the behavior of automatic entries in Enterprise Application Environment 3.x, which uses an automatic entry buffer, separate from the database buffer. The logic of the originating <<ispec>> class invokes the Initialize built-in <<ispec>> class method on this target attribute.
If an external automatic entry is initiated, the <<ispec>> class built-in method External is called on the target attribute and passes the boolean value true as a parameter.
This enables the application to initiate a transaction. The target <<Ispec>> class will have the following properties:
The class has presentation or the IsExternal property set to True (this is used to define the message format).
The AutomaticEntryCapable property should be set to True.
If Glb.Destination is set to NON.FORMAT, the Automatic Entry Buffer is directed to your external NOF program. Use Glb.DestNoForm to define the particular NOF program to be used.
The returned value in Glb.Status indicates the outcome of the NOF transaction.
When to Use
Use this method to initiate a transaction to be sent to any external program.
This method cannot be used to initiate a transaction directly to a NOF terminal, as transactions can only be passed to the NOF program.