org.jbpm.api
Interface ManagementService


public interface ManagementService

operations targeted to system operators that need to keep the process engine up and running. This functionality is typically exposed through a management web console.

Author:
Tom Baeyens

Method Summary
 JobQuery createJobQuery()
          search for jobs
 boolean deleteJob(long jobId)
          Deletes the job with the given id.
 void executeJob(java.lang.String jobId)
          resets the retry count, clears the exception and executes the job.
 

Method Detail

executeJob

void executeJob(java.lang.String jobId)
resets the retry count, clears the exception and executes the job. An exception is thrown out of this method in case the execution of the job fails. In case the async command executor is configured for this service, failing job execution will not result into an exception coming out of this method.


createJobQuery

JobQuery createJobQuery()
search for jobs


deleteJob

boolean deleteJob(long jobId)
Deletes the job with the given id.

Returns:
True if the deletion was succesful.


Copyright © 2010 JBoss Community. All Rights Reserved.