com.bea.wli.worklist.api.config
Interface TaskURLCalculatorContext


public interface TaskURLCalculatorContext

Provides services that can be used by TaskURLCalculators. Worklist provides the default implementation of this interface for use with the Worklist user portal. This portal displays tasks within the 'Work on Task' portlet, and the default implementation of this interface provides the web app context appropriate to that portal and portlet.


Method Summary
 String getWebAppContextForTask(String taskId)
          Get the web app context for the web app that is the most closely related to the task plan for the given task.
 

Method Detail

getWebAppContextForTask

String getWebAppContextForTask(String taskId)
                               throws ManagementException
Get the web app context for the web app that is the most closely related to the task plan for the given task. This web app context is calculated by looking for web apps in the same application as the Worklist system instance this calculator was registered with. If no web app can be found that way, the task plan host application for the task type associated with the given task is searched. Implementations should be prepared for invocations

Parameters:
taskId - The ID of the task for which a URL will eventually be calculated. May be null. If null, this context will return the general-purpose web app context for all tasks, or null of no web app context could be found.
Returns:
The web app context most appropriate for the task, or null if no web app context can be found.
Throws:
ManagementException