Hi all,
I'd like to know, in a dmi_workitem linked to a certain workflow, how to calculate the acceptation date.
for example, a task is assigned to a person and I'd like to know when the person has accepted the task...
have a nice day,
Michael.
Have you tried looking at the Object Reference manual for dmi_workitem? The "acceptance" is when the dmi_workitem is created, which is r_creation_date.
Hi,
I've read the section dedicated to dmi_workitem but as I do not know how the workitem is created, I cannot not suppose the creation date is filled when the task is accepted...
what happens when a task exists without being acepted(before being accepted), is the creation date == null? the instance exists then logically the creation date should be filled , no?
if you have a clue?
many thanks,
If I remember correctly, dmi_workitem is created for the group (before its accepted). When a user accepts the task, a dmi_workitem is created for the user and the dmi_workitem for the group is removed. Therefore, r_creation_date is never null.
I suggest that you rely on the audit trail instead. Workflow objects are deleted at the end of the workflow, audit trails stay.
For your particular case, you need to look for an event which is called dm_selectedworkitem. Check the Content Server manuals for all possible events, and how to enable workflow auditing.
Hicham