User Guide
  • Introduction
  • Overview
    • About 4WS.Platform
      • Architecture
      • Enterprise Edition
      • Tech specs and requirements
      • Warp SDK
    • Creating a web application
  • Core features
    • Tables
    • SqlTool
    • Definition of Data models and Relations
      • Relations
      • Reverse Engineering
      • Custom Fields
    • Defining business components
      • What are business components
      • Business components to fill-in panels
      • Creating business components
        • By a datastore entity
        • By a MongoDB collection
      • Defining Custom Java Business component
    • Defining the UI
      • App Designer
        • App Designer Menu
        • Definition of additional data sources
        • Panel containers and layouts
          • Tab panel
          • Alternative panel
          • Accordion panel
          • Vertical orientation panel
          • Horizontal orientation panel
          • Columns panel
          • Table panel
          • Generic panel
          • Responsive panel
        • Window content
          • Grid Panel
          • Form Panel
          • Filter Panel
          • Tree Panel
          • Google Map Panel
          • Preview Panel (old Image panel)
          • Tree + Grid Panel
          • Image Gallery
        • Windows list
        • Panel definition
          • Columns properties
          • Controls properties
          • Filter properties
          • Supported components
        • Variables
        • Code selectors
          • When not to use a dynamic combo-box
        • Smart Filter and Advanced Filter
        • Multi Value Combobox Filter
        • Multi Value Tree Filter
        • Buttons
        • Translations
          • Translations about GUI components and internationalization settings
          • Data coming from database
          • Custom code and translations
        • Application Menu
        • Bulk import binded to a grid
        • Range Date Filter
      • Web Interpreter
        • Grid components
        • Detail forms
        • Other components
        • Other features
          • Chat
        • Global variables
          • Client-side global variables
          • Server global variables
        • Forgot Password
    • Working with users and roles
      • Rule for roles
      • Permissions Administrator
    • Wizard
      • How to add a checkbox grid to select one or more rows
      • How to load a second grid when clicking on a row from the first grid
      • How to load a form when clicking on a row of the grid
      • How to open a window when double clicking on a row of the grid
      • How to open a window with right click on the popup menu
      • How to open a window when pressing a button on the grid toolbar
      • How to load a grid after loading a form
      • How to open a window when pressing a button on the form toolbar
      • How to load a grid when clicking on a tree node
      • How to load a form when clicking on a tree node
    • Defining events
      • Panel events
      • Column events
      • Control events
      • Filter events
      • Timer events
      • Start-End event
    • Server-side Javascript & Web Service
      • Server-side Javascript
      • Grid component filled by a server-side JS
      • Detail component filled by a server-side JS
      • How to define a server-side JavaScript action
      • Web service
  • Setting up the environment
    • How to install
    • Application parameters
    • Global parameters
  • Modules
    • Reports & Charts
      • Jasper Report + iReport
      • Online report
      • Docx templating
      • Charts
      • Pivot Grid
      • Multidimensional pivot grid
      • Data Export from SQL query
    • SSO
      • Identity management in Platform
        • Identity management on the internal Platform database
        • Identity management based on Google SSO
      • LDAP
        • LDAP support
        • Identity management based on LDAP and database
        • Identity management based on an embedded LDAP server used by Alfresco and or Activiti
        • Identity management based on a remote LDAP server to connect to Platform on the cloud
        • Connecting an LDAP server to Activiti BPM
        • Connecting an LDAP server to Alfresco ECM
      • Google SSO
        • Google SSO
        • Google OAuth2
        • Identity management based on Google SSO
      • Custom SSO
      • Firebase
    • Mobile
      • Mobile introduction
      • Offline vs Online
        • Server side features
        • Server side functionalities
        • Server side Platform features
        • Mobile app features
      • Mobile side specifics
        • Customizations
          • Custom theme editor
        • App Menu
        • Window content
          • Detail scrollable form
          • Scrollable paginated grid
          • Constraint layout
          • Constraint panel
          • Collection grid view
          • Preview panel (mobile)
        • Form Controls
      • Reference guide
      • Cleaning up data
      • How to
      • App deployment
        • App deployment for the iOS platform
        • App deployment for the Android platform
      • Style properties
      • Appendix : Synchronization flow
      • Translations
    • GSuite
      • Introduction
      • Client-side integration
      • GMail
      • Calendar
      • Drive
      • Contacts
    • Google Cloud Platform
      • Datastore
        • Google Datastore Introduction
        • How to create Datastore entities
      • Google Cloud Storage
    • Scheduler
      • Scheduler Introduction
      • Process settings
        • How to define a sequence of consecutive processes
        • How to define a Custom Java Business component
        • How to define a Grid Data Import
        • How to define a server-side Javascript action
      • Email notifications
      • Process executions
      • Manually start a scheduled process
      • Process input parameters
    • Queue Manager
    • Log & Analysis
      • Application Log
      • Log statistics
      • App analyzer
      • Table log
      • Threads
      • Sessions and heap memory
      • Heap memory analysis
      • Access Log
      • Datastore statistics
      • Total monthly costs with Google Datastore
      • Service Monitoring
        • Introduction
        • Defining a service to monitor
        • Notifications setup
        • Events automatically managed by Platform
        • Remote Platform servers
        • Knowledge base
        • Adding log programatically
        • Searching for logged data
        • Use cases
    • File Management
    • Export and Import of Metadata
      • Application Metadata Management
    • Trigger writing operations
    • Audit
    • BPM
      • BPMN Introduction
      • BPMN main parts
      • Activiti Setup
      • Platform integration
        • Processes
        • Models
        • Process instances
        • To-do list
        • Process history
      • Process Web Modeler
        • Model Creation
          • Start-End Event
          • Gateways
        • Supported objects
        • Start tasks and user tasks
        • Form properties
          • Important notes
          • Property types
        • Service tasks
          • Web service
          • SQL Query
          • SQL statement
        • Mail task
        • Script task
          • Example : how to get a value previously read from a SQL query
          • Example : how to get the current process instance id
        • Timer events
        • Subprocess and Call Activiti
      • Utility methods available in Platform
        • How to start a process from a JavaScript action
        • How to complete a user task from a JavaScript action
      • An example
        • Processes
        • Instances
        • Activities
        • History
    • Embedded CMS
    • ECM
      • Alfresco
        • Alfresco Introduction
        • Integration between 4WS.Platform and Alfresco
          • Integration at GUI level
          • Integration at model level
          • Integration at authentication and authorizations level
          • Additional features
        • How to use 4WS.Platform and Alfresco together
          • Set the same Identity Management system
          • Define document types and aspects in Alfresco
          • Import the document types and aspects definitions in 4WS.Platform
          • Define document types and aspects in 4WS.Platform
          • Reverse engineering of document types or aspects
          • Definition of business components to fill-in panels
          • Definition of the GUI
          • Additional server-side services
        • Requirements
        • Current limits in 4WS.Platform - Alfresco integration
      • Archiflow
        • Setup
        • Archiflow artifacts
        • How to
    • Lotus Notes Migration Tool
    • NoSQL databases
      • MongoDB
        • MongoDB Introduction
        • Setting up the environment
        • How to create collections
        • How to create business components
        • How to create windows filled with data coming from MongoDB collections
        • Design rules
      • Google Datastore
        • Google Datastore Introduction
        • Setting up the environment
        • How to create entities
        • How to create business components
        • How to create windows filled with data coming from Datastore entities
        • Design rules
    • TensorFlow
    • Web Page Development
      • Pure Web Page Development
      • Google Material Design development
      • Appendix A - a complete example without any lib
      • Appendix B - a complete example with Google MD
    • Jira Integration
    • Platform for GAE
    • SQL errors management
    • Multidimensional pivot grid
    • Quality
      • Automated Web Service Testing
      • Automated unit testing
      • Source code static analysis using ESlint
      • Source code static analysis using SonarQube
  • Troubleshootings
  • Best practises
    • Database design
    • Database maintenance
    • Creating a Web app : common use cases
    • Creating a mobile app : common use cases
Powered by GitBook
On this page

Was this helpful?

  1. Modules
  2. ECM
  3. Archiflow

How to

First, import an Archiflow Document Type, starting from the Platform Data Model -> Objects and Relation: here click on New -> Object from Archiflow.

Select one or more Document Types to import and press Next.

After doing it, Platform will show to the user as list of Archives bounded to each selected Document Type: they come in handy later, when an Archive must be specified to retrieve documents having such document type.

Next, define a “Javascript business component for a list”, where using the method “getPartialResultOnArchiflow”, in order to retrieve a list of cards, starting from:

  • a document type

  • a list of archives

  • optional filters

Example:

var json = utils.getPartialResultOnArchiflow(
  19, // data model id
  [], // filters
  [3, 32767], // int archive ids
  false, // cardsWithAttachedDoc
  null, // int search Types
  null // map additional Settings
);

utils.setReturnValue(json);

Finally, a window containing a grid can be filled starting from the “Javascript business component for a list” just defined.

When the grid has been created by Platform, it can be already used but an additional setting is still needed, for working not only with cards, but also with documents linked to cards:

  • open the grid definition

  • select the Columns folder

  • change the column type for CARD_ID column to “File Id”

  • set a default value in insert for the ARCHIVE column: the default value must be the Archive Id where the document will be saved (and later retrieved); consequently, the Archive Id to specify must be the same specified in the business component.

Please note that the File Id column should always be declared visible, so that a button will be rendered for it: when clicking such a button, a File Dialog will be prompt to the user, in order to upload, download or preview the document.

In case a detail form is required too, define a “Javascript business component for a form”, where using the method “getPartialResultOnArchiflow”, in order to retrieve a list of cards, starting from:

  • a document type

  • a list of archives

  • optional filters

Example:

var json = utils.getDetailOnArchiflow(
  19, // data model id
  reqParams.cardId, // this the unique identifier for the card
  additionalSettings
);

utils.setReturnValue(json);

Finally, change the control type for the form:

  • open the form definition

  • select the Controls folder

  • change the column type for CARD_ID column to “File Id”

  • set a default value in insert for the ARCHIVE control: the default value must be the Archive Id where the document will be saved (and later retrieved); consequently, the Archive Id to specify must be the same specified in the business component.

Please note that the File Id controls should always be declared visible, so that a button will be rendered for it: when clicking such a button, a File Dialog will be prompt to the user, in order to upload, download or preview the document.

Designing with Archiflow

In order to store documents in Archiflow, a card is required. A card can contain metadata too, where metadata represents properties associated to the document.

A database table can contain metadata too.

Consequently, the big question is: where is metadata stored? Either in a database table or as card fields.

Let's see both scenarios.

Metadata stored as card fields

Pros:

  • filtering documents (cards) according to its field values

  • creation of grids starting from a list of cards, filtered according to document type and/or archive ids

  • creation of forms starting from a card

Cons:

  • filtering/ordering conditions are limited, since Archiflow search is not as powerful as it can be a SQL query executed on a set of database tables

Note: if there is a database table where a specific record is linked to a document, it must contains a special field containing the card id; this value represents the document/card identifier

Metadata stored as table fields in a database

Pros:

  • filtering/sorting documents according not only to table fields but also to fields belonging to other tables grouped through JOIN conditions;

  • a SQL query executed on a set of database tables is powerful and can be used to generate reports, complex grids connecting data coming from different tables

Cons:

  • there is a loosing coupling between a record in a table and a document: at least a field in a table must be provided in order to store the document/card identifier, but the purpose of Archiflow would result significantly reduced

  • what is the use of Archiflow? must be used by end users not using the Platform web app? If it is so, these users would not be able to access metadata, since there is not any metadata storeed along with the document in a card: it has been stored in the database only!

  • how to upload/preview/download documents? only javascript methods could be used for that, since the grid/form is not directly connected to Archiflow: it is connected to a database table! Consequently, the operation of upload/preview/download documents would become more complex to manage (e.g. where is stored the archive id? the document type? any other data required to store a document?)

Note: in this second scenario, it is essential to share with the stakeholder the exact usage of cards in Archiflow, in order to avoid losing operations needed on that side, depending on metadata in card not any more stored there.

PreviousArchiflow artifactsNextLotus Notes Migration Tool

Last updated 5 years ago

Was this helpful?