Annotation examples
- Last Updated: October 29, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
You can automatically add annotations in Progress Developer Studio for OpenEdge, or you can add them manually. For details on adding annotations in Progress Developer Studio for OpenEdge, see Annotate ABL in Progress Developer Studio for OpenEdge. Annotating ABL in Progress Developer Studio for OpenEdge. The following code samples illustrate annotations:
- External procedure
The following code sample illustrates annotation of an external procedure,
foo.p. The only required name-value pairs aretypeandexecutionMode, as shown:
|
Processing this annotation creates the file foo.esboe that
describes a non-persistent operation named foo. foo takes
an input integer named bar and returns a character
string named ney.
- Renamed .esboe file for an external
procedure
The following code sample illustrates the annotation of an external procedure,
foo.p, that renames the generated .esboe file:
|
This annotation creates the file Renamed_foo.esboe that
describes a non-persistent operation on the OpenEdge Application
Server.
- Internal procedure
The following code sample illustrates the annotation of an internal procedure,
barrinside the filefoo.p:
|
The external procedure foo must be annotated
as persistent before the internal procedure barr can
be annotated. Three files are created based on these annotations:
-
foo.esboe— foo.esboe runs the external procedure persistently -
foo_barr.esboe— foo_barr.esboe invokes the internal procedure -
foo_release.esboe— foo_release.esboe deletes the persistent procedure, unbinding the OpenEdge Application Server from the process