org.demac.process.base.dpdl
Interface Transaction

All Known Implementing Classes:
TransactionImpl

Deprecated. Since DPDL version 1.1

public interface Transaction

An Activity representing a transaction. A transaction is a set of Activities that have to be executed in "all or nothing" semantics. If a transaction fails and cannot be rolled back, predefined Compensation Activities can be executed.


Method Summary
 java.util.Hashtable getActivityRefs()
          Deprecated.  
 Compensation getCompensation()
          Deprecated.  
 java.util.Hashtable getExtendedAttributes()
          Deprecated.  
 java.lang.String getId()
          Deprecated.  
 ActivityRef getInitActivity()
          Deprecated.  
 java.lang.String getName()
          Deprecated.  
 int getRetries()
          Deprecated.  
 ActivityRef getStartActivity()
          Deprecated.  
 java.util.Hashtable getTransitions()
          Deprecated.  
 java.lang.String getType()
          Deprecated.  
 boolean hasRetries()
          Deprecated. Method to determine whether or not a transaction should be retried.
 

Method Detail

getInitActivity

ActivityRef getInitActivity()
Deprecated. 
Returns:
Returns the initial org.demac.process.base.dpdl.ActivityRef of the org.demac.process.base.dpdl.Transaction.

getStartActivity

ActivityRef getStartActivity()
Deprecated. 
Returns:
the StartActivity of the org.demac.process.base.dpdl.Transaction.

getCompensation

Compensation getCompensation()
Deprecated. 
Returns:
the org.demac.process.base.dpdl.Compensation of the org.demac.process.base.dpdl.Transaction. The compensation can itself hold Activities and Transitions to compensate the effects of the transaction if it fails.

getId

java.lang.String getId()
Deprecated. 
Returns:
the ID of the org.demac.process.base.dpdl.Transaction.

getName

java.lang.String getName()
Deprecated. 
Returns:
the textual name of the org.demac.process.base.dpdl.Transaction.

getRetries

int getRetries()
Deprecated. 
Returns:
the number of retries for the org.demac.process.base.dpdl.Transaction.

getActivityRefs

java.util.Hashtable getActivityRefs()
Deprecated. 
Returns:
the org.demac.process.base.dpdl.ActivityRefs of the org.demac.process.base.dpdl.Transaction.

getTransitions

java.util.Hashtable getTransitions()
Deprecated. 
Returns:
the org.demac.process.base.dpdl.Transitions of the org.demac.process.base.dpdl.Transaction.

getType

java.lang.String getType()
Deprecated. 
Returns:
the type of the transaction, for example if it should be an atomic or an open nested transaction.

hasRetries

boolean hasRetries()
Deprecated. 
Method to determine whether or not a transaction should be retried.

Returns:
the retry-state

getExtendedAttributes

java.util.Hashtable getExtendedAttributes()
Deprecated. 
Returns:
the org.demac.process.base.dpdl.ExtendedAttributes of the org.demac.process.base.dpdl.Transaction, for example optional information.