PSA Apex API Developer Reference

pse.TaskManagementService

global class TaskManagementService

Services related to Task Management triggers and operations

Methods

externalTriggerStart

global static void externalTriggerStart()

Start of a block of non-PSA external triggers to modify project task fields. This method should NOT be used in conjunction with DML operations on fields with the pse namespace. USAGE: TaskManagementService.externalTriggerStart(); update myProjectTasks; TaskManagementService.externalTriggerFinish();

externalTriggerFinish

global static void externalTriggerFinish()

End of a block of non-PSA external triggers to modify project task fields. This method should NOT be used in conjunction with DML operations on fields with the pse namespace.

isGanttSaveInProcess

global static Boolean isGanttSaveInProcess()

Returns the state of a static flag set at the beginning and end of the Project Task Gantt save method. It can be used to determin if custom triggers related to task management should be bypassed.

TaskManagementService

global TaskManagementService()

A global no arguments constructor for the service class

pse.TaskManagementService.GanttSaveContext

global class GanttSaveContext

A global class that provides context information about the Project Task Gantt save in process

Properties

Name Type Description
projectID ID The ID of the project

Methods

GanttSaveContext

global GanttSaveContext()

A global no arguments contstrutor for the class

pse.TaskManagementService.GanttSavePlugin

global interface GanttSavePlugin

A global interface for customers to have Project Task Gantt call custom code.

Methods

beforeSave

void beforeSave(pse.TaskManagementService.GanttSaveContext gsc)

The inteface method to implement to be called prior to Project Task Gantt save method

Input Parameters

Name Type Description
gsc pse.TaskManagementService.GanttSaveContext -- an instance of the GanttSaveContext class providing the contextual information

Return Value

Void

afterSave

void afterSave(pse.TaskManagementService.GanttSaveContext gsc)

The inteface method to implement to be called after Project Task Gantt save method

Input Parameters

Name Type Description
gsc pse.TaskManagementService.GanttSaveContext -- an instance of the GanttSaveContext class providing the contextual information

Return Value

Void

pse.TaskManagementService.SampleGanttSavePlugin

global class SampleGanttSavePlugin implements TaskManagementService.GanttSavePlugin

A sample implementation of the GanttSavelugin.

This class implements the following interfaces:

Methods

beforeSave

global void beforeSave(pse.TaskManagementService.GanttSaveContext gsc)

afterSave

global void afterSave(pse.TaskManagementService.GanttSaveContext gsc)

© Copyright 2009–2018 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.