tatus Maintenance on Custom Application
In order to maintain status in our custom Application, these are the Following requirements:- Objects
- domain
- Relationship
- Field Class
- Custom Mbo classes
- Status Handler class
- Beans
- Create one persistent and one non-persistent object to maintain status other than your custom Application Object.
- Create status,statusdate,memo fields in three objects(persistent ,non-persistent and main object(custom application object) with the same syntax.
- Create a synonym domain from the db2 database.
2. Create an entry on synonym domain table based on domain id entry on max domain table.
3. Add the domain to your Main object status field.
Relationship:
- Create a relationship between synonym domain and our Main object using where clause according to the domain id
- Domain id='ZSTATUS' and value=:status and :&DOMAINFILTER&_STATUS Set the main object id in persistent status object and Create a relationship between Main object and persistent status Object using where clause.
- Create a relationship between Main object and Non-persistent object without any where clause
- Field Class: Create a field class which extends Synonym domain or else use existing field class which is given by Maximo to the non-persistent field (status) of non-persistent object