You can easily achieve this using a database poller. Check for the records column=current date and write it to a file.
In case you do not want a poller, use a quartz scheduler, call your BPEL process from the quartz scheduler . This BPEL process can read the records from database and write to a file.
Thanks for the response. I do really appreciate it..
I dont have any options to just read a record based on the criteria COLUMN=CURRENTDate. I dont want to delete any records from the table after read. It is our permanent table where all the records are stored. I need to do the ReadOperation rather delete AFTER READ.
Then use the second option fire the SQL query on DEMAND. Also you have other options apart from deleting the records like :-
I dont see the PORT TYPE and OPERATIONS for the interaction type "Partner Link" when readtbl service ( created using the following steps) is invoked in the BPEL process at the design view.
Steps followed to create the DB adapter service:
1. Poll for New or Changed Records in a table.
2. Selected a table.
3. No Relationship declared ( as it is not required ).
4. Selected the Primary Key
5. Update Field in the TABLE NAME table ( Logical Delete ) .. Reason is: I don't have Sequencing set up at the table level.. Please advice.
6. Logical Delete Field has been set to the parameter I am passing to the BPEL process.
7. Read and Unread value has been set to 1 and 0 respectively.
8. Polling Options - Default.
9. Parameter: Using Logical Delete Field as the parameter.
10. Advanced Option - Default.
The DB Adapter created has been placed at Exposed services ( usually I see at the External References when I select the different options in STEP 1). I wired the tblread exposed services to the BPEL process and the tried to invoke it. That time I dont see the options mentioned above.
Please advise. How can I read all the DB Adapter output records and pass it along the BPEL process for write?
Also Do I need to create a SEQUENCE for the tbl if I need to use the following options ?
- Section 126.96.36.199, "Update an External Sequencing Table on a Different Database"
- Section 188.8.131.52, "Update a Sequencing File"
Use the logical delete option : Oracle JCA Adapter for Database - 11g Release 1 (184.108.40.206.3)
In the bpel process drop the receive activity and in the receive activity look for the partner link for the db adapter you have created.
Thanks for your inputs. I have been trying to get around this error message for the past 2 days, after I dropped the connection between the BPEL ReceiveInput activity to the BPELPROCESS_CLIENT service and added DBRead service instead.
- Error(64): variable "inputVariable" of type "client:BPELProcessRequestMessage" is not compatible with WSDL message "ns1:EmployeeCollection_msg".
As from the error, you have to change the message in wsdl file or again create a bpel process and this time select template "Define Service Later". After that wired the db service adapter with that bpel process and then in the bpel process drag the revceive activity and add the db read service.