Using DFC programming How to identify workflow is completed ?

Options

Requirement : Delete document after workflow completed.
By Using DFC programming can we identify whether workflow is completed or not ?

Best Answer

  • Hicham Bahi
    Options

    When a workflow is completed, the dm_workflow object is deleted from the docbase. You could use dm_audittrail or dmc_completed_workflow objects to find documents which were part of a workflow. Alternatively, include an automated activity at the end of your process to delete the document.

Answers

  • Hicham Bahi
    Options

    When a workflow is completed, the dm_workflow object is deleted from the docbase. You could use dm_audittrail or dmc_completed_workflow objects to find documents which were part of a workflow. Alternatively, include an automated activity at the end of your process to delete the document.

  • Thank you so much for your reply.

    Your answer is really useful for my question.

    I am new in Documentum so In DFC programming how i can use " dm_audittrail " or " dmc_completed_workflow" objects to find documents which were part of a workflow.

    Could you please provide the code example ?

  • You need to query for this objects (use DQL in DA instead of typical SQL).

  • @DCTM_Guru said:
    You need to query for this objects (use DQL in DA instead of typical SQL).

    Could you please provide the syntax of this DQL query ? so based on that syntax i will built a DQL query.

  • We're not here to do the work for you. If you are going to do DFC development, you must first understand the object model and learn DQL.