Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-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

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

onInitiate

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

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

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

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

Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


Copyright © 2006, Oracle. All rights reserved.