org.jbpm.wire.operation
Class EnlistOperation

java.lang.Object
  extended by org.jbpm.wire.operation.EnlistOperation
All Implemented Interfaces:
java.io.Serializable, Operation

public class EnlistOperation
extends java.lang.Object
implements Operation

enlists this Resource with the current Transaction.

This Operation specifies that the object on which this operation is applied should be added as a Resource to the specified Transaction.

property transactionName refers to the objectName of the Transaction and it may not be null.

Author:
Tom Baeyens, Guillaume Porcher (documentation)
See Also:
Serialized Form

Constructor Summary
EnlistOperation()
           
 
Method Summary
 void apply(java.lang.Object target, WireContext wireContext)
          Apply this operation to the specified object, defined in the specified WireContext.
 java.lang.String getTransactionName()
          Gets the name of the transaction to which the object should be added.
 void setTransactionName(java.lang.String transactionName)
          Sets the name of the transaction to which the object should be added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnlistOperation

public EnlistOperation()
Method Detail

apply

public void apply(java.lang.Object target,
                  WireContext wireContext)
Description copied from interface: Operation
Apply this operation to the specified object, defined in the specified WireContext.

Specified by:
apply in interface Operation
Parameters:
target - object on which the operation should be performed.
wireContext - context in which the operation is applied.
Throws:
WireException - if this operation is applied on an object which is not a resource or if the specified transaction cannot be found.

getTransactionName

public java.lang.String getTransactionName()
Gets the name of the transaction to which the object should be added.


setTransactionName

public void setTransactionName(java.lang.String transactionName)
Sets the name of the transaction to which the object should be added.

Parameters:
transactionName -