Use case

Multi File Transfer on BPMN: custom synchronisation logic across clouds and storages, with content checks

Custom synchronisation logic across clouds and storages as a BPMN process: routes and rules for your tasks, options to check files for viruses and personal data leaks.

Executive edition

The problem

Company employees and external partners need to exchange files securely. Each of them may use a different cloud and storage technology: S3-compatible, FTP, HTTP and so on. So files have to be synchronised between different storages, in line with the enterprise’s security requirements.

What changes

On the example of SharePoint and SFTPGo:

  1. A SharePoint administrator keeps the routes in one list — which library goes to which SFTPGo folder and back — and can pause and resume a route; no code changes.
  2. A file change or a scheduled cycle starts the process; it reads the changes page by page and plans one transfer per file and route.
  3. Each transfer resolves the destination, reads the source, uploads to a temporary place and only then finalizes under the final name — no half-written file is left at the destination.
  4. The reading position moves forward only when every transfer is completed, so nothing is skipped.
  5. After a restart, completed files are not transferred again, and a second host takes over the work.
  6. The process retries failed transfers automatically. A file whose sensitivity label forbids the transfer goes to quarantine, controlled by an external service over ICAP (Internet Content Adaptation Protocol), and never reaches the partner zone; the SFTPGo administrator sets the ICAP check as the condition for publishing.

What it is worth

  • Custom synchronisation logic: different clouds and storages, routes and rules for your tasks, in a BPMN process rather than scripts for each portal.
  • Content check options: a file is checked for viruses and personal data leaks before it reaches its destination.
  • A transfer log for every file, no half-written files; completed files are not transferred again after a restart.

What MEF.DEV brings

MEF.DEV BPMN Low-code on Enablement & Monetization Platform: versioned processes with retries and recovery, connected to Microsoft Graph and SFTPGo.

Architect edition — Multi File Transfer on BPMN

Place in the architecture

The transfer runs as versioned BPMN processes in MEF.DEV BPMN Low-code on Enablement & Monetization Platform, not as a separate application. The processes inherit the platform’s ODA alignment: API functions correspond to the role of ODA components, and Kubernetes with GitOps delivery is the operating environment. Each process’s contract is its typed boundary.

Components

  • Route list A SharePoint list with source path, target path, initial fill mode and an active flag. A SharePoint administrator edits it; the platform reads it at the start of a cycle, compares it with the stored snapshot and writes the status.
  • Cycle process transfer_files serves one drive for one cycle.
  • File process transfer_file moves one file in four typed operations.
  • Backend plugin Carries the operations against Microsoft Graph and SFTPGo.
  • Task worker Picks up unfinished work again after a failure.

Contracts

  • DriveWorkModel Input of a cycle: drive key, stored position (DeltaLink), routes to serve and route memory.
  • FileTransferModel Input of a transfer: operationId, source transport and path, destination transport and path, final name.
  • OperationResult Status with an error code, correlation identifier and retryAfterSeconds. A refusal such as FinalNameConflict comes back as a result, and the caller decides by status.
  • Cycle outcomes COMMITTED, NOT_COMMITTED, NO_DELTA_LINK and, in debug mode, PLANNED_ONLY.
  • Credentials The value of an access token does not cross the BPMN boundary: the credential is applied to the connection context. The application uses Sites.Selected with admin consent.

Flow of one cycle

  1. A notification only signals a change. The cycle reads changes through Microsoft Graph page by page from the stored position.
  2. A later change of a file replaces the earlier one, so a file is transferred at most once per route in a cycle.
  3. The cycle plans one transfer per file and route and calls transfer_file for each, one after another.
  4. Each transfer resolves the destination, reads the source, uploads to a temporary location and finalizes under the final name. The file becomes visible at the destination only in that last step.
  5. The new position, with the route memory, is committed only when every transfer is completed; otherwise the next cycle starts again from the old position.

Recovery

  • The state of each call is saved: after a restart, completed files are not transferred again, and the interrupted step runs again from its beginning.
  • A worker picks up the unfinished task and continues the same main instance; a second host takes over after the first stops.
  • A restart does not resume bytes from an offset, and an operation after the last saved state can repeat.

Integration points

  • Microsoft 365 Outbound HTTPS to Microsoft Graph through a forward proxy with an allowlist; an inbound HTTPS endpoint on the DMZ (Demilitarized Zone) reverse proxy for notifications.
  • SFTPGo For each route the SFTPGo administrator sets staging, published and quarantine zones, a technical account, an upload event rule towards the message broker and an ICAP check as the condition for publishing. Partners see only published.
  • Platform A message broker, a database for the transfer journal, cursors and subscriptions, and a scheduler for subscription renewal and a daily control cycle.

People in control

The SharePoint administrator owns routes and pauses or resumes them. The process retries failed transfers automatically, and an external service controls the quarantine over ICAP.

Boundaries

  • A route is one-way; the opposite direction is a separate route with separate folders.
  • Deletions are not propagated, and a renamed file counts as new.
  • Permissions, version history and SharePoint metadata are not transferred.
  • The order between files is not preserved; the initial fill mode is fixed when a route is created.

Solution scope

The scope of the quarantine and control cycles above is agreed in the project.

Technical depth on platform.mef.dev →

The same for every reader

TM Forum ODA · Open API

TM Forum ODA and Open APIs

MEF.DEV exposes TM Forum Open APIs, follows ODA principles and has an entry in the TM Forum ODA Component Directory.

BSL 1.1

Licence

Business Source License 1.1: free for internal production use; Enterprise Modules by licence key; each version converts to Apache 2.0 after four years.

EU · on-premises · cloud

Security, data and jurisdiction

EU company; deployment in your infrastructure, sign-in through standard SSO; development, delivery and support under an ISO 9001:2015 quality system.

ISO 9001:2015

Certified development and security

WideCoup Convergent BSS and MEF.DEV are developed, delivered and supported under an ISO 9001:2015 quality management system; MEF.DEV passed an independent security audit and penetration test.

Certificates and audit →

Document request

 

The notices come with the material: that is how it stays free. Every notice has an unsubscribe link.

By sending this form you agree to the Privacy Policy, Terms of Use and functional and analytics cookies.