Saturday 21 February 2009

Save Object to Database Oracle BPM

You can also create a BPMObject directly from the catalogued table (right click table and select "Create here). This object will have all the table fields of your respective table. You can create instances of these BMPObjects for use in automatic activities or screenflow presentation function calls. These BPMObjects provide a method called "store" to directly update the corresponding database table.

eg. 

1. You have database db and table mytable
2. Catalogue table ad say you name it MyTable
3. Right-click and select "Create Heir" and you name it MyTableObj
4. To use this: 
Create an instance of this BMPObject type
myTable as MyTableObj = MyTableObj()
myTable.<some field> = .... to set some field value or
someVar = myTable.<some field> to read some field value
5. To save record in DB use: myTable.store()

No comments: