Oracle WebCenter Interaction Web Service Development Guide

     Previous Next  Open TOC in new window   View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Managing Oracle WebCenter Collaboration Task Workflow Using Oracle WebCenter Interaction Development Kit (IDK) Remote APIs

To set dependencies between Oracle WebCenter Collaboration tasks and create subtasks from a remote application, use the ITask interface in the Oracle WebCenter Interaction Development Kit (IDK).

Almost every task can be broken up into detailed subtasks, and most tasks are related to other tasks in the same project. The PRC Collaboration API allows you to create up to three levels of subtasks, and set dependencies between tasks. You can also manipulate assignments, task status and risk settings. For details, see Editing Oracle WebCenter Collaboration Task and Task List Properties Using Oracle WebCenter Interaction Development Kit (IDK) Remote APIs.
The ITask interface allows you to create subtasks for a given task and define the name, description, start date and due date. Subtasks are also represented by an instance of ITask. You can also manipulate dependencies between tasks in the same project using ITask.addDependentTask.
Note: Tasks with associated subtasks cannot be added as dependents.
To add a subtask to an existing task, follow the steps below.
  1. Create a PRC session. For details, see Initiating a PRC Session to Use Oracle WebCenter Interaction Development Kit (IDK) Remote APIs.
  2. Get the task ID and retrieve the associated object.
  3. Create a subtask as shown in the code samples below.
    Note: The createSubTask method creates a persisted task, so no call to store is required unless you modify properties after creating the subtask.

Java

...

//get the parent task
ITask task = tasklistManager.getTask(taskID);

//create the subtask
ITask subtask = parentTask.createSubTask(name, description, startTime, endTime);

//to set additional properties, you must call store() to persist the subtask
subtask.AddAssignedUser(UserID);
subtask.store();

...

.NET (C#)

...

//get the parent task
ITask task = tasklistManager.GetTask(taskID);

//create a subtask
ITask subtask = parentTask.CreateSubTask(name, description, startTime, endTime);

//To set additional properties, make sure that Store() is called
subtask.Risk = TaskRisks.Low;
subtask.Status = TaskStatuses.FiftyPercentCompleted;
subtask.Store();

...

.NET (VB)

...

'get the parent task
dim task As ITask = tasklistManager.GetTask(taskID)

'create a subtask
Dim subtask As ITask = parentTask.CreateSubTask(name, description, startTime, endTime)

'To set additional properties, make sure that Store() is called
subtask.Risk = TaskRisks.Low
subtask.Status = TaskStatuses.FiftyPercentCompleted
subtask.Store()

...

  Back to Top      Previous Next