Retrieving Entry Criteria for LifeCycle state through dfc or dql

Mayur_shivs
edited January 11, 2013 in Documentum #1

Hello,

i am importing a document which is been assigned a lifecycle , now the lifecycle have three state , and there is entry criteria for second state ,

so through DFC OR DQL how can i retrieve a ENTRY CRITERIA for particular state of lifecycle

Regards

Comments

  • NanoMeko
    edited January 11, 2013 #2

    Take a look at a dump of your dm_policy object

    dump,c,<id of your lifecycle>

    then look at the entry_criteria_id for the state your require (repeating attributes) and dump that perhaps it'll give you the information you need.

  • Mayur_shivs
    edited January 11, 2013 #3

    Hello,

    if you are talking about API , i have gone through API but i havent found out anything , can you elaborate  through dfc

    Regards

  • NanoMeko
    edited January 11, 2013 #4

    In DFC the steps are the same:

    try retrieving your lifecycle object:

    IDfSysObject procObj = (IDfSysObject)

    idfSession.getObjectByQualification(“dm_policy where object_name=

    ‘LifeCycle Name’ “);

    Then get the get the repeating attributes state_name and entry_criteria_id. (Look at dfc api for retrieving repeating attributes) I believe each state has a corresponding entry criteria id. The id corresponds to

    Object ID of the dm_func_expr

    that implements the entry

    criteria.

    The source

    code for all expressions defined

    for this policy object are stored

    on page 0 of the policy’s content,

    and all p‑code is stored on page

    1.

    so with dfc get that object and look at it's contents.