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).
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() ...