A container associated with task flow that contains the data control is called Data control frame. Data control frame is created for each task flow that's entered results in each task flow having it's own unique instance of data control issues .Data control scope is shared or isolated.Shared mean the DataControlFrame is of calling and isolated is having it's own DataControlFrame.Shared wont work if the calling task flow uses URL to invoke called task flow.
<task-flow-definition
id="shared_dc_calling">
<default-activity>shared_dc_view1</default-activity>
<data-control-scope>
<shared/>
</data-control-scope>
......................
If the task flow is in transaction data-control-option effects transaction options.
Transaction option
|
Isolated
|
shared
|
requires-existing-transaction
|
Invalid
|
-
No
transaction exception
-
Existing
transaction never committed
|
requires-transaction
|
Always
Begin new transaction
|
Begin
new transaction if one is not already open
|
new-transaction
|
Always
begin new transaction
|
Begin
new if one is not open and throw
exception if already one there
|
<default>
none
|
New
data control frame is created without an open transaction
|
Task Flow uses the calling task flow's transaction for shared data control for any new data controls
it creates.task flow does not create or requires a transaction
|
No comments:
Post a Comment