|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.pgs.jbpm.exe.AbstractDefaultTaskImplementation
public abstract class AbstractDefaultTaskImplementation
Provides a default implementation of the Task interface.
Copyright 2004-2006, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledge.
| Field Summary | |
|---|---|
protected TaskRunner |
caller
|
protected org.jbpm.graph.exe.ExecutionContext |
executionContext
|
protected Logger |
logger
The following logger is used by all components of the pgs.jbpm package. |
protected String |
taskName
|
protected String |
taskParams
|
| Constructor Summary | |
|---|---|
AbstractDefaultTaskImplementation()
|
|
| Method Summary | |
|---|---|
void |
init(TaskRunner incaller,
String intaskName,
String intaskParams,
org.jbpm.graph.exe.ExecutionContext context)
This method is called before the run method of this class. |
abstract void |
run()
It is wise to wrap this method with a try/catch block that catches Throwable to avoid uncaught runtime exceptions. |
protected void |
taskCompleted(boolean normalCompletion)
Call this method at the end of the run method. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Logger logger
protected TaskRunner caller
protected String taskName
protected String taskParams
protected org.jbpm.graph.exe.ExecutionContext executionContext
| Constructor Detail |
|---|
public AbstractDefaultTaskImplementation()
| Method Detail |
|---|
public void init(TaskRunner incaller,
String intaskName,
String intaskParams,
org.jbpm.graph.exe.ExecutionContext context)
throws Exception
Task
init in interface Taskincaller - The task runner that is responsible for
running this task. NOTE: It is the task's responsibility
to call the TaskRunner.taskCompleted(boolean) method
once the run methods completes.intaskName - A meaningful name of this task.intaskParams - A stringified version of the UPF file.context - The execution context.
Exceptionpublic abstract void run()
run in interface Runnableprotected void taskCompleted(boolean normalCompletion)
TaskRunner.taskCompleted(boolean)
method.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||