Class AbstractTaskType
java.lang.Object
com.onenetwork.platform.common.task.AbstractTaskType
public abstract class AbstractTaskType
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description AbstractTaskType()
-
Method Summary
Modifier and Type Method Description java.lang.String
getTaskDetailFunction(Task task, PlatformUserContext context)
Provides JS function name which is to be invoked when the user drills into the detail for a given task.java.lang.String
getTaskDetailModuleFunction(Task task, PlatformUserContext context)
Provides the module function name that the corresponding module should open when a child task is clicked.java.lang.String
getTaskDetailModulePath(Task task, PlatformUserContext context)
Provides the React Task Summary Widget module path that loads the module dynamically.java.lang.String
getTaskDetailPanel(Task task, PlatformUserContext context)
Provides the Ext.Panel subclass name that handles the display of a task detail.java.lang.String
getTaskDetailWebAction(Task task, PlatformUserContext context)
Returns the WebAction to be used as the default behavior for opening a child task.void
onComplete(Task task, PlatformUserContext context)
Provides an opportunity to take action on task completion.void
onCreate(Task task, PlatformUserContext context)
Provides an opportunity to take action on task creation, for example create child tasks.void
onFirstDetailVisit(Task task, PlatformUserContext context)
Provides an opportunity to take action when the user first visits the detail page of a task.void
onStart(Task task, PlatformUserContext context)
Provides an opportunity to take action on task start.void
postComplete(Task task, PlatformUserContext context)
Provides an opportunity to take action after task completion.void
postCreate(Task task, PlatformUserContext context)
Provides an opportunity to take action after task creation.void
postStart(Task task, PlatformUserContext context)
Provides an opportunity to take action after task start.boolean
shouldStartOnVisitDetail(Task task, PlatformUserContext context)
Returns true iff task "starts" as soon as the user visits the detail page.
-
Constructor Details
-
AbstractTaskType
public AbstractTaskType()
-
-
Method Details
-
getTaskDetailPanel
Provides the Ext.Panel subclass name that handles the display of a task detail. The default class shows a generic detail page with the task header & details, and any child tasks. This is used within the function whose name is returned bygetTaskDetailFunction(Task, PlatformUserContext)
, and in the One.ext.portlet.TaskPortlet, which is used to display tasks in a portlet. -
getTaskDetailFunction
Provides JS function name which is to be invoked when the user drills into the detail for a given task. The function is invoked with the following parameters: 1) task: Object that contains all the properties of the Task instance 2) parentTask: Object that contains all properties of the parent Task instance 3) taskLabel: String that contains the task header text The default function implementation looks something like this:
task.taskDetailPanel is a special property that contains the JS panel name returned byOne.form.TaskDetail.show = function(task, parentTask, taskLabel) { Desktop.openPanelInNewTab(task.taskDetailPanel, { sysId: task.SysId }, taskLabel); };
getTaskDetailPanel(Task, PlatformUserContext)
. -
getTaskDetailModulePath
Provides the React Task Summary Widget module path that loads the module dynamically. -
getTaskDetailModuleFunction
Provides the module function name that the corresponding module should open when a child task is clicked. -
getTaskDetailWebAction
Returns the WebAction to be used as the default behavior for opening a child task. -
shouldStartOnVisitDetail
Returns true iff task "starts" as soon as the user visits the detail page. Defaults to true -
onFirstDetailVisit
Provides an opportunity to take action when the user first visits the detail page of a task. Note: IfshouldStartOnVisitDetail(Task, PlatformUserContext)
returns true, this method will be called beforeonStart(Task, PlatformUserContext)
. -
onCreate
Provides an opportunity to take action on task creation, for example create child tasks. Note: This callback is executed before the tasks are written to the database. UsepostCreate(Task, PlatformUserContext)
if you need a callback for after the write() call. -
postCreate
Provides an opportunity to take action after task creation. -
onStart
Provides an opportunity to take action on task start. Note: This callback is executed before the tasks are written to the database. UsepostStart(Task, PlatformUserContext)
if you need a callback for after the write() call. -
postStart
Provides an opportunity to take action after task start. -
onComplete
Provides an opportunity to take action on task completion. Note: This callback is executed before the tasks are written to the database. UsepostComplete(Task, PlatformUserContext)
if you need a callback for after the write() call. -
postComplete
Provides an opportunity to take action after task completion.
-