org.jboss.soa.esb.services.jbpm.integration.job
Class ExecuteJobCommand

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.job.ExecuteJobCommand
All Implemented Interfaces:
java.io.Serializable, org.jbpm.command.Command

public class ExecuteJobCommand
extends java.lang.Object
implements org.jbpm.command.Command

Individual job processing command.

Author:
Alejandro Guizar
See Also:
Serialized Form

Constructor Summary
ExecuteJobCommand(long jobId, boolean redelivered)
          Create the job command with a specified job id.
 
Method Summary
 java.lang.Object execute(org.jbpm.JbpmContext jbpmContext)
          Execute the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteJobCommand

public ExecuteJobCommand(long jobId,
                         boolean redelivered)
Create the job command with a specified job id.

Parameters:
jobId - The associated job id.
redelivered - The redelivered flag.
Method Detail

execute

public java.lang.Object execute(org.jbpm.JbpmContext jbpmContext)
                         throws java.lang.Exception
Execute the command.

Specified by:
execute in interface org.jbpm.command.Command
Parameters:
jbpmContext - The jBPM context associated with the execution.
Throws:
java.lang.Exception - for errors during execution.