Sie sind auf Seite 1von 5

BPM JOBS:-

BPM jobs are implemented as java methods

BPM jobs can be rerun and reconfigured using DA

List of BPM jobs

- dm_bpm_XCPAutoTaskMgmt
- dm_Initialize_WQ
- dm_QmPriorityAging
- dm_QmPriorityNotification
- dm_QmThresholdNotification
- dm_WFSuspendTimer
- dm_WfmsTimer

Enable the dm_method trace

API> retrieve,c,dm_method where object_name = ‘<method name>‘

API> set,c,l,trace_launch

SET> T

API> save,c,l

 $Method_server/deploy/bpm.ear/APP-INF/classes/log4j.properties
 Trace file is created at <Documentum_home>/dba/log/<docbase_name>.log
 select * from dm_method where object_name=‘<method name>‘
 select * from dm_job where object_name=‘<job name>'

xCP Failed Auto Task Execution

Job Name : dm_bpm_XCPAutoTaskMgmt

Method Name: dm_bpm_XCPAutoTaskMgmt

Java Class Name : com.documentum.bpm.method.XCPAutoTasKMgmt

Description: Execute failed auto tasks

Queries tasks which are marked for “to be processed by job”

Create a thread per task id and pass task id into thread

Thread acquire the task and completes it


Tracing/logging :

Enable method trace

log4j.logger. com.documentum.bpm = DEBUG

Initialize WQ tasks

Job Name : dm_Initialize_WQ

Method Name: dm_Initialize_WQ

Java Class Name : com.documentum.bpm.method.WQInitialization

Description: Initialize WQ tasks and creates associated skill sets objects if any

Content server creates WQ tasks and sets a_held_by of dmi_workitem to dm_system. (this means task is
not fully initialized)

Queries these tasks

Check if task has a associated skill sets

If yes, creates skill set objects

Clear a_held_by

After a_held_by is cleared, tasks appears in inbox, queuelist and Get Next Task

Tracing/logging :

Enable method trace

log4j.logger. com.documentum.bpm = DEBUG

Increments WQ task priority

Job Name : dm_QmPriorityAging

Method Name: dm_QmPriorityAging

Java Class Name : com.documentum.server.impl.method.workflow.qm.PriorityAging

Description: Increments priority of each work queue task

Query all work queues and iterate each queue

Fetch work queue policy of each queue

Query all tasks belong to a queue


Iterate each task and increments priority

Tracing/logging :

Enable method trace

log4j.logger. com.documentum.services.workqueue = DEBUG

Send WQ priority notification

Job Name : dm_QmPriorityNotification

Method Name: dm_QmPriorityNotification

Java Class Name : com.documentum.server.impl.method.workflow.qm.PriorityNotification

Description: Notify work queue admin for the tasks which have exceeded maximum priority limit
specified in work queue policy.

Query all work queues and iterate each queue

Fetch work queue policy of each queue

Query all tasks belong to a queue and has priority > maximum priority limit

Notify work queue admin

Tracing/logging :

Enable method trace

log4j.logger. com.documentum.services.workqueue = DEBUG

Send WQ task threshold notification

Job Name : dm_QmThresholdNotification

Method Name: dm_QmThresholdNotification

Java Class Name : com.documentum.server.impl.method.workflow.qm.ThresholdNotification

Description: Notify work queue admin if total count of work queue tasks for a queue has exceeded
maximum threshold limit specified in work queue policy.

Query all work queues and iterate each queue

Fetch work queue policy of a queue


Query the total count of tasks in a queue and compare with threshold

Notify work queue admin if total number of tasks in a queue is > threshold

Tracing/logging :

Enable method trace

log4j.logger. com.documentum.services.workqueue = DEBUG

Resume suspended tasks

Job Name : dm_WFSuspendTimer

Method Name: dm_WFSuspendTimer

Java Class Name :com.documentum.server.impl.method.workflow.timer.WFSuspendTimer

Description: Resume suspended tasks after the suspension interval expires

Query all tasks whose due date is less than current date time and task is suspended.

Resume suspended task

Tracing/logging :

Enable method trace

Run tasks pre and post- timers

Job Name : dm_WfmsTimer

Method Name: dm_bpm_timer

Java Class Name :com.documentum.bpm.method.XCPTimer

Description: Initialize pre and post timers & take action on expired timers

Initialize timers

1. Query uninitialized timer objects from dmi_wf_timer type (i.e. r_is_initialized =


0)

2. Calculate due date from timer start date. (dmi_wf_timer.r_start_time)

3. Set dmi_wf_timer.r_timer = duedate and r_is_initialized=1

Process expired timers


1. Query expired timer objects from dmi_wf_timer type where r_timer < current
date and time.

2. Audit events (Pre Timer Expires, Post Timer Expires) in dm_audittrail object

3. Take timer expired actions

Tracing/logging :

Enable method trace

Enable log4j.logger. com.documentum.bpm = DEBUG

Das könnte Ihnen auch gefallen