org.jbpm.pvm.internal.cmd
Class ExecuteJobCmd

java.lang.Object
  extended by org.jbpm.pvm.internal.cmd.AbstractCommand<Job>
      extended by org.jbpm.pvm.internal.cmd.ExecuteJobCmd
All Implemented Interfaces:
java.io.Serializable, Command<Job>

public class ExecuteJobCmd
extends AbstractCommand<Job>

Author:
Tom Baeyens, Huisheng Xu
See Also:
Serialized Form

Field Summary
protected  java.lang.Long jobDbid
           
protected  JobExceptionHandler jobExceptionHandler
           
 
Constructor Summary
ExecuteJobCmd(java.lang.Long jobDbid)
           
ExecuteJobCmd(java.lang.String jobId)
           
 
Method Summary
 Job execute(Environment environmentInterface)
           
protected  void handleJobExecutionException(java.lang.Exception exception)
          This transaction will be marked for rollback.
protected  void registerJobExceptionHandler(Environment environment, JobImpl job)
           
 
Methods inherited from class org.jbpm.pvm.internal.cmd.AbstractCommand
getAuthenticatedUserId, setAuthenticatedUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobDbid

protected java.lang.Long jobDbid

jobExceptionHandler

protected JobExceptionHandler jobExceptionHandler
Constructor Detail

ExecuteJobCmd

public ExecuteJobCmd(java.lang.String jobId)

ExecuteJobCmd

public ExecuteJobCmd(java.lang.Long jobDbid)
Method Detail

execute

public Job execute(Environment environmentInterface)
            throws java.lang.Exception
Throws:
java.lang.Exception

handleJobExecutionException

protected void handleJobExecutionException(java.lang.Exception exception)
This transaction will be marked for rollback. A command will be associated with the Transaction.EVENT_AFTERCOMPLETION (after the job locks of the current transaction are released). Then the command will update the job with the exception details in a separate transaction.


registerJobExceptionHandler

protected void registerJobExceptionHandler(Environment environment,
                                           JobImpl job)


Copyright © 2010 JBoss Community. All Rights Reserved.