org.jbpm.wire.operation
Class InvokeOperation

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

public class InvokeOperation
extends AbstractOperation

invokes a method.

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

Field Summary
 
Fields inherited from class org.jbpm.wire.operation.AbstractOperation
dbid, dbversion
 
Constructor Summary
InvokeOperation()
           
 
Method Summary
 void addArgDescriptor(ArgDescriptor argDescriptor)
          Adds a descriptor to the list of arguments descriptors.
 void apply(java.lang.Object target, WireContext wireContext)
          Apply this operation to the specified object, defined in the specified WireContext.
 java.util.List<ArgDescriptor> getArgDescriptors()
          Gets the list of descriptor to create arguments supplied to the method .
 java.lang.String getMethodName()
          Gets the name of the method to invoke.
 void setArgDescriptors(java.util.List<ArgDescriptor> argDescriptors)
          Sets the list of descriptor to create arguments supplied to the method .
 void setMethodName(java.lang.String methodName)
          Sets the name of the method to invoke.
 
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

InvokeOperation

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

addArgDescriptor

public void addArgDescriptor(ArgDescriptor argDescriptor)
Adds a descriptor to the list of arguments descriptors.


getMethodName

public java.lang.String getMethodName()
Gets the name of the method to invoke.


setMethodName

public void setMethodName(java.lang.String methodName)
Sets the name of the method to invoke.

Parameters:
methodName - the name of the method to invoke.

getArgDescriptors

public java.util.List<ArgDescriptor> getArgDescriptors()
Gets the list of descriptor to create arguments supplied to the method .


setArgDescriptors

public void setArgDescriptors(java.util.List<ArgDescriptor> argDescriptors)
Sets the list of descriptor to create arguments supplied to the method .