# File Replication

## Selection of vaults used for checking in files

| If the values delivered by the algorithm based on standard configuration table are not sufficient, you can use your own procedure to select a vault for check in. If you want to execute your own procedure you have to activate custom-specific vault selections by changing the DFM configuration parameter EDB-DFM-STORE-AREA-CUSTOM. (set =y)
| Select Manager > System > Other parameters.
| Select rubric EDB- DFM. The procedure itself must be implemented as database stored procedure using the template delivered in script cre_DFM_sel_store_area.sql template
| /* ||========================================================= ||Procedure to select site specific vault for check in ||Process This procedure is not included in standard ||package and must be create by the user itself using the ||same oracle schema. If an error occur and no , please set ||output parameter 0 ||========================================================= */ CREATE OR REPLACE PROCEDURE DFM_sel_store_area (v_site IN VARCHAR2, v_file_c_id IN INTEGER, v_doc_c_id IN INTEGER, v_store_area OUT VARCHAR2, v_store_fil_c_id OUT INTEGER, v_tracefile IN UTL_FILE.file_type) IS BEGIN DECLARE x_anz INTEGER := 0; x_err_nr INTEGER := 0; x_chk_typ VARCHAR2(1) := 'Y'; BEGIN v_store_fil_c_id := 0; v_store_area := ''; IF UTL_FILE.is_open(v_tracefile) THEN UTL_FILE.put_line(v_tracefile,' cust-storage-area, in DFM_sel_store_area: v_store_area='||v_store_area); UTL_FILE.put_line(v_tracefile,' : v_store_fil_c_id='|| to_char(v_store_fil_c_id)); END IF; END; END; / SHOW ERRORS SET TERM ON SET ECHO OFF
| ### Configuration of lifecycles for replication orders You can create a specific life cycle for replication orders and position of an order. If you work with own states you must adapt the set of configuration parameters, which controls execution of a replication order. For further information refer to the topic "Release Procedure of a File Replicationl.!
| ### Automatic Replication During a project, rules for automatic file replication will be defined like for example · Replication of all new TIFF files related to a released document to all sites · All new and changed files to a master site · . . . To customise such solutions you can use the userexits and LGV functions of the module Distributed objects.(create replication order , put file into and order, execute replication order …..)

###

###

###