Interface ITaskProcessAuditService
- All Superinterfaces:
IComponent
,IInitializable
,ITaskComponent
Service that handles auditing of task operations into shared ProcessAudit. The
information about the task will be used in the monitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Task is active and was accepted by the userstatic final int
Task was cancelledstatic final int
Task has completedstatic final int
Step successfully completedstatic final int
Task expiredstatic final int
Task failedstatic final int
Tasks is active in the queuestatic final int
Task was suspendedstatic final int
Step was startedstatic final int
Task was suspendedstatic final int
Step status is undefined (for newly added steps)static final int
Identifier for TaskEngine used for auditing task engine events -
Method Summary
Modifier and TypeMethodDescriptionReturns datasource name for ProcessAudit poolvoid
Attempts to initialize ProcessAudit poolboolean
isProcessArchived
(String processID) Checks process audit database if specified process audit is archivedboolean
Indicates if ProcessAudit schema pool is initializedvoid
logTaskAudit
(IURI principalURI, ITask task, int status) Logs task audit eventMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Field Details
-
TASK_ENGINE_SYSTEM
static final int TASK_ENGINE_SYSTEMIdentifier for TaskEngine used for auditing task engine events- See Also:
-
STATUS_UNDEFINED
static final int STATUS_UNDEFINEDStep status is undefined (for newly added steps)- See Also:
-
STATUS_STARTED
static final int STATUS_STARTEDStep was started- See Also:
-
STATUS_ENDED
static final int STATUS_ENDEDStep successfully completed- See Also:
-
STATUS_QUEUED
static final int STATUS_QUEUEDTasks is active in the queue- See Also:
-
STATUS_ACCEPTED
static final int STATUS_ACCEPTEDTask is active and was accepted by the user- See Also:
-
STATUS_COMPLETED
static final int STATUS_COMPLETEDTask has completed- See Also:
-
STATUS_SUSPENDED
static final int STATUS_SUSPENDEDTask was suspended- See Also:
-
STATUS_RESUMED
static final int STATUS_RESUMEDTask was suspended- See Also:
-
STATUS_CANCELLED
static final int STATUS_CANCELLEDTask was cancelled- See Also:
-
STATUS_FAILED
static final int STATUS_FAILEDTask failed- See Also:
-
STATUS_EXPIRED
static final int STATUS_EXPIREDTask expired- See Also:
-
-
Method Details
-
initProcessAuditPool
Attempts to initialize ProcessAudit pool- Throws:
PortalException
-
isProcessAuditPoolInitialized
boolean isProcessAuditPoolInitialized()Indicates if ProcessAudit schema pool is initialized- Returns:
-
getProcessAuditPoolName
String getProcessAuditPoolName()Returns datasource name for ProcessAudit pool -
logTaskAudit
Logs task audit event- Parameters:
principalURI
- pricipal performed task operationtask
- task instance to log audit onstatus
- audit status- Throws:
PortalException
-
isProcessArchived
Checks process audit database if specified process audit is archived- Parameters:
processID
-- Throws:
PortalException
-