org.jbpm.wire.operation
Class FieldOperation

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

public class FieldOperation
extends AbstractOperation

injects another object into a field.

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

Field Summary
 
Fields inherited from class org.jbpm.wire.operation.AbstractOperation
dbid, dbversion
 
Constructor Summary
FieldOperation()
           
 
Method Summary
 void apply(java.lang.Object target, WireContext wireContext)
          Apply this operation to the specified object, defined in the specified WireContext.
 Descriptor getDescriptor()
          Gets the descriptor used to create the field's value.
 java.lang.String getFieldName()
          Gets the name of the field that should be updated by this operation.
 void setDescriptor(Descriptor valueDescriptor)
          Sets the descriptor used to create the field's value
 void setFieldName(java.lang.String fieldName)
          Sets the name of the field that should be updated by this operation.
 
Methods inherited from class org.jbpm.wire.operation.AbstractOperation
getDbid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldOperation

public FieldOperation()
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.

Parameters:
target - object on which the operation should be performed.
wireContext - context in which the operation is applied.

getFieldName

public java.lang.String getFieldName()
Gets the name of the field that should be updated by this operation.


setFieldName

public void setFieldName(java.lang.String fieldName)
Sets the name of the field that should be updated by this operation.

Parameters:
fieldName -

getDescriptor

public Descriptor getDescriptor()
Gets the descriptor used to create the field's value.


setDescriptor

public void setDescriptor(Descriptor valueDescriptor)
Sets the descriptor used to create the field's value

Parameters:
valueDescriptor -