Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


com.oracle.services.bpel.task
Interface ITasklet

All Known Implementing Classes:
DefaultTasklet

public interface ITasklet

This interface allows the user to execute custom code whenever certain events occur with a task. New tasklet objects are instantiated for each task event; hence, all tasklet implementations should be stateless.

Since:
2.0

Method Summary
 void init(java.util.Map properties)
          Initializes the tasklet with the properties specified in the task template.
 void onComplete(ITask tr)
          This method is invoked when a task is being completed.
 void onExpire(ITask task)
          This method is invoked when a task is being expired.
 void onInitiate(ITask tr)
          This method is invoked when a task is being initialized.
 void onUpdate(ITask tr)
          This method is invoked when a task is being updated.

 

Method Detail

init

public void init(java.util.Map properties)
Initializes the tasklet with the properties specified in the task template.

onInitiate

public void onInitiate(ITask tr)
                throws java.lang.Exception
This method is invoked when a task is being initialized. The tasklet properties are available to this method.
Parameters:
tr - the task being initialized
Throws:
java.lang.Exception - if there is an exception while initializing the task.

onUpdate

public void onUpdate(ITask tr)
              throws java.lang.Exception
This method is invoked when a task is being updated.
Parameters:
tr - the task being updated
Throws:
java.lang.Exception - if there is an exception while updating the task.

onComplete

public void onComplete(ITask tr)
                throws java.lang.Exception
This method is invoked when a task is being completed.
Parameters:
tr - the task being completed
Throws:
java.lang.Exception - if there is an exception while completing the task.

onExpire

public void onExpire(ITask task)
              throws java.lang.Exception
This method is invoked when a task is being expired.
Throws:
java.lang.Exception - if there is an exception while expiring the task.

Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


Copyright © 2005, Oracle. All rights reserved.