3.3.2.2.2.2. HookService: Move to Dynamic Folder

If you want to use dynamically created folders, you need to use the "TC_HookService_MoveToNewFolder".

  1. Open PARTadmin and filter for "MoveToNewFolder".

  2. Enable the "HookService" and set the desired values for "TC_HookService_MoveToNewFolder_DESTINATION_FOLDER" and "TC_HookService_MoveToNewFolder_Flags".

    ifnxteamcenter.cfg

    [CreationOptions] 
    PdmOnCheckin_04.EXECUTE=_TC_HOOK_SERVICE.moveToNewFolder 
    TC_HookService_MoveToNewFolder_DESTINATION_FOLDER=?"Home/DaBe/"+_Format_0
    ("<PREFIXLIST(/)>").value() + "/" + _FORMAT_0("<ATTR(NN)>").value() 
    TC_HookService_MoveToNewFolder_Flags=13 

    TC_HookService_MoveToNewFolder_Flags is to write as <bitfield>. 13 = 1+4+8

    #:HELP; The parameter <Bitfield> for moveToNewFolder: 
    #       1: create not existing folders? 
    #       2: use Item owner as source folder user? 
    #          (TC_HookService_MoveToNewFolder_SourceFol  der_User will be ignored) 
    #       4: use Item owner as destination folder user? 
    #          (TC_HookService_MoveToNewFolder_DestinationFolder_User will be ignored) 
    #       8: get sorce folder(s) from Item? 
    #          (TC_HookService_MoveToNewFolder_SOURCE_FOLDER will be ignored) 

    Examples:

    13 will use options 1,4,8

    12 will use options 4,8.

    5 will use option 1 and 4.

    etc.

  3. Perform a new export.

    -> The Item will be moved to the configured folder.