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

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.job.ExecuteJobCommand

public class ExecuteJobCommand
extends java.lang.Object

Individual job processing command.

Author:
Alejandro Guizar

Constructor Summary
ExecuteJobCommand(long jobId, boolean redelivered)
          Create the job command with a specified job id.
 
Method Summary
 java.lang.Object execute(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(JbpmContext jbpmContext)
                         throws java.lang.Exception
Execute the command.

Parameters:
jbpmContext - The jBPM context associated with the execution.
Throws:
java.lang.Exception - for errors during execution.