A virtual application is a WOW application that inherits or reuses operations from another WOW application. For example, assume you have created a "Sales" application and another "Inventory" application and they both have 10 operations a piece. Now for managers you want to create an application called "Managers Portal" which contains operations from both "Sales" and "Inventory" for a total of 20 operations. You could copy all the operations but that would lead to dual maintenance. Virtual applications can solve this issue.
To create a virtual application, follow these steps:
Create a WOW application and set the "subclass" to: planetj.dataengine.application.MultipleOperationApplication This class will enable your application to return any number of operation.
2. Create a SQL Operation inside your virtual application that will return the WOW operations you want to inherit. For example:
SELECT * FROM planetj_usr.SQLOPS where apid = 105
planetj_usr represents the current WOW user library or project schema such as PJUSER70. Set the operation's usageID to -567 This identifies it as the virtual operation retrieval operation. Change 105 to the application id that holds the operations you would like to inherit. Note: this could be multiple applications: SELECT * FROM planetj_usr.SQLOPS where apid = 105 or apid = 106.
After creating the operation, run the application and verify this operation is returning the operations you want to inherit. After testing, you can "hide" this operation using the "display rule" -> Hide option.
Your application should now show both inherited or virtual operation and also operations you create directly in your virtual application.
Tags: Reuse operations share operations inherit operations multiple inheritance of operations copy operations