org.ow2.bonita.pvm.internal.jobexecutor
Class ExecuteJobCmd

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.jobexecutor.ExecuteJobCmd
All Implemented Interfaces:
java.io.Serializable, Command<Job>

public class ExecuteJobCmd
extends java.lang.Object
implements Command<Job>

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  long jobDbid
           
 
Constructor Summary
ExecuteJobCmd(long jobDbid)
           
 
Method Summary
 Job execute(Environment environment)
           
protected  void handleJobExecutionException(Environment environment, JobImpl<?> job, java.lang.Throwable exception)
          This transaction will be marked for rollback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobDbid

protected long jobDbid
Constructor Detail

ExecuteJobCmd

public ExecuteJobCmd(long jobDbid)
Method Detail

execute

public Job execute(Environment environment)
            throws java.lang.Exception
Specified by:
execute in interface Command<Job>
Throws:
java.lang.Exception

handleJobExecutionException

protected void handleJobExecutionException(Environment environment,
                                           JobImpl<?> job,
                                           java.lang.Throwable exception)
This transaction will be marked for rollback. A command will be associated with the Transaction.EVENT_AFTERCOMPLETION (after the jobImpl locks of the current transaction are released). Then the command will update the JobImpl with the exception details in a separate transaction.



Copyright © 2009 OW2 Consortium. All Rights Reserved.