====== Vibemosphere ECM Sync ====== Migrates ELO folders and documents (by document mask, recursively) to SharePoint / OneDrive and keeps them in step: JNDI data sources as the ELO source, AAM applications as the target. ^ Id | ''ecm-sync'' | ^ Role | ''ecm-sync'' - needed for the page and the REST API (administrators always may) | ^ Page | **Plugins > Open** (overlay with an X at the top right) or ''/plugins/ecm-sync/'' | ^ REST | ''/api/plugins/ecm-sync/...'' and, for callers with the role, ''/plugins/ecm-sync/...'' | ===== Open the configuration ===== In the administration open **Plugins**, select the row of this plug-in and press **Open**. The page opens in an overlay dialog: close it with the **X** at the top right, with Esc or by clicking outside; //Open in a new tab// next to the title shows it full size. {{vibecat:plugin-ecm-sync.png?900|Vibemosphere ECM Sync: the plug-in page in its overlay dialog}} ===== The page in detail ===== {{vibecat:plugin-ecm-sync-full.png?900|Vibemosphere ECM Sync: the whole page (playground instance)}} The page has these sections: **Sources / Destinations**, **Migration / Sync profiles**, **Runs**, **Source / destination**, **Analysis**, **SQL**, **Profile**, **Source and destination**, **Start folders and subfolders**, **Date range (optional; folders are not filtered)**, **File filters (optional)**, **Keyword filter (objkeys) all conditions must hold**, **Document types (masks)**, **Files**, **Target**, **Field mappings source or expression to library column**, **Schedule**. ===== Fields and columns ===== ^ Label ^ Meaning ^ | Name | | | Type | | | Description | | | JNDI data source (Data sources page) | | | AccessManager data source (eloam: users, groups, keys; optional) | | | Server of the archive (drive paths are read through \\server\d$) | | | Path mappings (from=to, one per line) | | | Archive path of the DocuWare disks | | | Base folder (the selection tree starts here; empty = all drives of the server) | | | AAM application | | | Signed-in account (from the AAM application) | | | Site URL | | | Library (name or URL segment; empty = first) | | | OneDrive folder URL | | | or user (his OneDrive root) | | | Analysis | | | Keyword name | | | Flag bit mask (decimal or 0x..) | | | File cabinet | | | Source (from the list) | | | Destination (from the list) | | | Start folders (tick one or more folders; the archive root ticked = everything) | | | Document date (objidate) Last modified from | | | to (whole day) | | | Change stamp (objtstamp, UTC) from | | | to | | | Only these extensions (pdf, docx ...) | | | Without these extensions | | | Only names (* and ?) | | | Without names | | | Minimum size (KB) | | | Maximum size (MB, 0 = none) | | | Document masks (none ticked = all) · number of documents in brackets | | | Largest file (MB, 0 = no limit) | | | Folder in the destination (created, empty = root) | | | Transform the folder names on the way (one rule per line: Old=>New or re:regex=>replacement ) | | | Sync records database (JNDI data source; the table SyncRecord is created there) | | | Column for the mask name | | | Column for the ELO access string (objacl, text; no SharePoint permissions) | | | Stop after n documents (0 = all, for trials) | | | Keywords to columns, simple list (ELO keyword = column, one per line; * = all under their own name) | | | Run | | | Every (minutes, at least 5) | | | Daily at (local time) | | | Role | Column of a table | | Details | Column of a table | | Source | Column of a table | | Destination | Column of a table | | Last run | Column of a table | | Started | Column of a table | | Profile | Column of a table | | State | Column of a table | | Folders | Column of a table | | Documents | Column of a table | | Size | Column of a table | ===== Actions ===== * **Sources / Destinations** * **Migration / Sync profiles** * **Runs** * **New** * **New profile** * **Save** * **Test** * **Analyse ...** * **Close** * **Analyse** * **Copy the SQL (all analyses: all statements)** * **Copy as CSV** * **Source / Destination** * **Selection** * **Types** * **Target** * **Mapping** * **Schedule** * **Add condition** * **Keywords and values ...** * **All** * **None** * **Show sync records** * **Forget records (full run next time)** * **Add mapping** * **Complete mappings from selected masks** * **Count (dry run)** * **Migrate now** * **Forget the delta state** * **HTML report** ===== Notes from the page ===== * ELO and DocuWare are read-only sources (database access, nothing is written). SharePoint and OneDrive (Microsoft Graph) are source and destination. * (tick one or more folders; the archive root ticked = everything) * Every ticked folder becomes a folder of its own name in the destination (the selected folder is kept, not dissolved); only the archive root of ELO ticked = its content goes straight into the destination folder. A folder below another ticked folder is migrated with that one. Names can be transformed on the Target tab. * (optional; folders are not filtered) * Hidden and system files and links are always left out. The file's last-modified time and size are the change marker of the delta mode. * all conditions must hold ===== Reference ===== This plug-in has no separate documentation page; the sections above describe its page. The REST API follows the pattern ''/api/plugins/ecm-sync/...'' (see [[vibecat:plugins:start|plug-in overview]]). [[vibecat:plugins:start|All plug-ins]] ===== Profile dialog in detail ===== ==== Migration menu ==== The actions of a profile are in the **Migration** menu next to //enabled//: **Migrate**, **Dry run (detailed report)** and **Forget delta**. {{vibecat:ecm-migration-menu.png?800|ECM Sync: the Migration menu of the profile dialog}} ==== Selection ==== The **Selection ...** button on the Selection tab transports exactly the objects you list: **object ids** (one per line or comma separated) and/or a **WHERE criterion** on the table ''objekte'' (alias ''o''), for example ''o.objmask = 5 AND o.objparent = 4711''. Only a condition is accepted. //Try the selection// shows how many objects are found. The selection is kept in the profile. With **auto transport parent structures** the parent folders of every selected object come along (the original folders of the source); without it the objects land directly in the destination folder. {{vibecat:ecm-selection-dialog.png?800|ECM Sync: Selection dialog with object ids, WHERE criterion and a test}} ==== Threading ==== The **Threading** tab sets the maximum number of threads (1-64). Documents are transferred in parallel; folders are created one at a time, ids and folder orderings come from shared counters, every thread has its own database connection and transaction, and documents of the same name in the same folder wait for each other. Each thread needs one connection of the data source: raise **Max total** of the data source (the run reduces the thread count and says so in the log when the pool is too small). {{vibecat:ecm-threading-tab.png?800|ECM Sync: the Threading tab}} ==== ELO to ELO ==== With an ELO source and an ELO destination the **original folder objects** (name, GUID, dates, description, mask) are transported together with the **masks, keywords and aspect values** of every object: * masks are matched by name; mask lines by their key, never by position - the destination may number its fields differently; * missing masks, mask lines, aspects, aspect lines and associations are created or completed in the destination; * the aspect ids may differ between the repositories. {{vibecat:ecm-target-elo2elo.png?800|ECM Sync: the ELO to ELO options on the Target tab}} ==== Dry run and logs ==== A dry run in the ELO to ELO scenario reads the destination (read only) and writes a **detailed report**: every folder and document with the action (create / exists, new / unchanged / new version, skipped and why), the definitions that would be completed, counts per mask. The Runs tab shows where everything is stored: logs below ''data\plugins\ecm-sync\logs\'', reports (HTML, CSV) below ''...\reports\'', with buttons to open the report. {{vibecat:ecm-runs-log.png?800|ECM Sync: Runs tab with the log and report locations}}