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 ITask


public interface ITask

This interface allows the user to interact with a task that has been instantiated in a process domain.

Tasks are special instances of activities where the performer of the activity is manual rather than automated. Tasks may be assigned to particular assignees and may have expiration times associated with them.

Since:
2.0

Field Summary
static java.lang.String NAMESPACE_URI
           
static java.lang.String STATUS_ACTIVE
           
static java.lang.String STATUS_CANCELLED
           
static java.lang.String STATUS_COMPLETED
           

 

Method Summary
 java.lang.String getAssignee()
          Returns the current assignee for this task.
 java.lang.Object getAttachment()
          Returns the contents (attachment) of the task.
 java.lang.String getConclusion()
           
 java.util.Calendar getCreationDate()
           
 java.lang.String getCreator()
          Returns the creator identifier for this task.
 java.lang.String getCustomKey()
          Returns the lookup key for this task.
 org.exolab.types.Duration getDuration()
          Returns the expiration duration specified for this task.
 java.util.Calendar getExpirationDate()
          Returns the expiration date for this task.
 java.lang.String getModifier()
          Returns the performer for this task.
 java.util.Calendar getModifyDate()
           
 int getPriority()
          Returns the current priority of this task.
 java.lang.String getStatus()
          Returns the state for this task.
 java.lang.String getTaskId()
          Returns the unique identifier for this task.
 java.lang.String getTemplate()
          Returns the name of the template for this task.
 java.lang.String getTitle()
          Returns the current title for this task.
 boolean isExpired()
          Returns true if the task is expired otherwise it returns false.
 void setAssignee(java.lang.String assignee)
          Sets the current assignee for this task.
 void setAttachment(java.lang.Object payload)
          Sets the contents (attachment) of the task.
 void setConclusion(java.lang.String conclusion)
           
 void setCreationDate(java.util.Calendar creationDate)
          Sets the creation date for this task.
 void setCreator(java.lang.String creator)
          Sets the creator identifier for this task.
 void setCustomKey(java.lang.String customKey)
          Sets the lookup key for this task.
 void setDuration(org.exolab.types.Duration duration)
          Sets the expiration duration specified for this task.
 void setExpirationDate(java.util.Calendar expirationDate)
          Sets the expiration date for this task.
 void setExpired(boolean expired)
          Sets the task to be expired.
 void setModifier(java.lang.String modifier)
           
 void setModifyDate(java.util.Calendar modifyDate)
           
 void setPriority(int priority)
          Sets the current priority of this task.
 void setTaskId(java.lang.String taskId)
          Sets the unique identifier for this task.
 void setTemplate(java.lang.String template)
          Sets the name of the template for this task.
 void setTitle(java.lang.String title)
          Sets the current title for this task.

 

Field Detail

NAMESPACE_URI

static final java.lang.String NAMESPACE_URI
See Also:
Constant Field Values

STATUS_ACTIVE

static final java.lang.String STATUS_ACTIVE
See Also:
Constant Field Values

STATUS_COMPLETED

static final java.lang.String STATUS_COMPLETED
See Also:
Constant Field Values

STATUS_CANCELLED

static final java.lang.String STATUS_CANCELLED
See Also:
Constant Field Values

Method Detail

getTaskId

java.lang.String getTaskId()
Returns the unique identifier for this task. This value is generated automatically by the system and is used to lookup the task internally.

setTaskId

void setTaskId(java.lang.String taskId)
Sets the unique identifier for this task. This value is generated automatically by the system and is used to lookup the task internally; it should not be modified.

getTitle

java.lang.String getTitle()
Returns the current title for this task.

The semantics attached to the title value are the sole domain and responsibility of the developer.


setTitle

void setTitle(java.lang.String title)
Sets the current title for this task.

The semantics attached to the title value are the sole domain and responsibility of the developer.


getCreationDate

java.util.Calendar getCreationDate()

setCreationDate

void setCreationDate(java.util.Calendar creationDate)
Sets the creation date for this task.

getCreator

java.lang.String getCreator()
Returns the creator identifier for this task.

The semantics attached to the value of the creator are the sole domain and responsibility of the developer.


setCreator

void setCreator(java.lang.String creator)
Sets the creator identifier for this task.

The semantics attached to the value of the creator are the sole domain and responsibility of the developer.


getModifyDate

java.util.Calendar getModifyDate()

setModifyDate

void setModifyDate(java.util.Calendar modifyDate)

getModifier

java.lang.String getModifier()
Returns the performer for this task. The task may be assigned to a particular user but may be completed or performed by another user. This field can be used to store the identifier of the user who actually completed the task.

setModifier

void setModifier(java.lang.String modifier)

getAssignee

java.lang.String getAssignee()
Returns the current assignee for this task.

The semantics attached to the value of the assignee are the sole domain and responsibility of the developer.


setAssignee

void setAssignee(java.lang.String assignee)
Sets the current assignee for this task.

The semantics attached to the value of the assignee are the sole domain and responsibility of the developer.


getStatus

java.lang.String getStatus()
Returns the state for this task. This value is used by the system to indicate the state this task. Currently supported values are:

getExpirationDate

java.util.Calendar getExpirationDate()
Returns the expiration date for this task. There are two ways to set an expiration time for the task:

setExpirationDate

void setExpirationDate(java.util.Calendar expirationDate)
Sets the expiration date for this task. There are two ways to set an expiration time for the task:

getDuration

org.exolab.types.Duration getDuration()
Returns the expiration duration specified for this task. There are two ways to set an expiration time for the task:

setDuration

void setDuration(org.exolab.types.Duration duration)
Sets the expiration duration specified for this task. There are two ways to set an expiration time for the task:

getPriority

int getPriority()
Returns the current priority of this task.

The semantics attached to the priority value are the sole domain and responsibility of the developer.


setPriority

void setPriority(int priority)
Sets the current priority of this task.

The semantics attached to the priority value are the sole domain and responsibility of the developer.


getTemplate

java.lang.String getTemplate()
Returns the name of the template for this task. A task template is a set of initialization properties and a custom executable tasklet that is executed whenever a task's state is updated:

Task templates are deployed to each process domain.


setTemplate

void setTemplate(java.lang.String template)
Sets the name of the template for this task. A task template is a set of initialization properties and a custom executable tasklet that is executed whenever a task's state is updated:

Task templates are deployed to each process domain.


getCustomKey

java.lang.String getCustomKey()
Returns the lookup key for this task. The value specified for this key can be used to uniquely lookup this task; this key has no system-specific meaning.

The semantics attached to the value of the key are the sole domain and responsibility of the developer.


setCustomKey

void setCustomKey(java.lang.String customKey)
Sets the lookup key for this task. The value specified for this key can be used to uniquely lookup this task; this key has no system-specific meaning.

The semantics attached to the value of the key are the sole domain and responsibility of the developer.


getConclusion

java.lang.String getConclusion()

setConclusion

void setConclusion(java.lang.String conclusion)

getAttachment

java.lang.Object getAttachment()
                               throws ServerException
Returns the contents (attachment) of the task. This value can be of any type.
Throws:
ServerException - if there is a problem in loading the task from the process domain.

setAttachment

void setAttachment(java.lang.Object payload)
Sets the contents (attachment) of the task. This value can be of any type.

isExpired

boolean isExpired()
Returns true if the task is expired otherwise it returns false.

setExpired

void setExpired(boolean expired)
Sets the task to be expired.
Parameters:
expired - - true if the task needs to be expired otherwise false.

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.