ADF Taskflow Transaction Management

There are four transaction management properties available, please refer the guide http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/taskflows_complex.htm#BABICCGC for detail description. In short : 1) No Controller Transaction - does not participate in any transaction management 2) Always Use Existing Transaction - the bounded task flow participates in an existing transaction 3) Use Existing Transaction If Possible - bounded task flow either participates in an existing transaction or starts a new transaction 4) Always Begin New Transaction - new transaction starts when the bounded task flow is entered Samples are here on each of the above: Always Begin New Transaction : There is already a example given by andre use existing transaction example small note : since jobs and location editable tables are independent in andre example, we can change the shared data control scope to unshared by unchecking the check box, that way this example is 100% in synch with doc description. i,e doc says "deselect the Share data controls with calling task flow checkbox so that data controls are not shared with the calling task flow if you choose Always Begin New Transaction Always Use Existing Transaction if Possible : lets have a main page with button say Run Transaction (some thing similar to andre example) but we put job and location pages in there respective taskflows in this usecase, some thing like this. main.jspx -> job_TF -> location_TF (job_TF contains job.jspx and location_TF contains location.jspx) job_TF - Always Begin New Transaction ( no return no commit ) location_TF - Always Use Existing Transaction if Possible ( return with commit ) so that it reuse the same transaction generated in job_TF to process on location_TF. and also deselected the Share data controls in both TF's, so that data controls are not shared with the calling task flows as per doc. Always Use Existing Transaction: We can extend the usecase2 by adding one more page and taskflow, lets say department_TF i,e main.jspx->job_TF->location_TF->department_TF job_TF - Always Begin New Transaction ( no return no commit ) location_TF - Always Use Existing Transaction ( no return no commit ) department_TF - Always Use Existing Transaction if Possible ( return with commit ) adf1.PNGadfr2.PNGadfr3.PNGadfr4.PNG
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today