Use case wrappers (old style)
Syntax |
usecase { prewrappers = { prewrapper, ... } postwrappers = { postwrapper, ... } } |
Fabasoft app.ducx allows you to add a use case wrapper to an existing use case that is invoked whenever the wrapped use case is executed.
Note: Wrappers are only allowed if the software component has a 1.* domain ID (e.g. DUCXSAMP@1.1001).
Two types of use case wrappers are supported:
- The prewrappers keyword is used to assign one or more prewrappers to an existing use case. Multiple entries must be separated by colons. A prewrapper is invoked before the wrapped use case is executed.
- The postwrappers keyword is used to assign one or more postwrappers to an existing use case. Multiple entries must be separated by colons. A postwrapper is invoked after the wrapped use case has been executed successfully.
Note: A use case wrapper must be assigned the same prototype or parameter list as the use case to be wrapped by the use case wrapper.
Cloud profile note: The definition of use case wrappers is not allowed.
Example |
usecases APPDUCXSAMPLE@200.200 { import COOSYSTEM@1.1; VerifyContent(parameters as AttrSetPrototype) { variant Object { java = APPDUCXSAMPLE.Object.VerifyContent; } } override AttrContentSet { postwrappers = { VerifyContent } } } |