Doorgaan naar hoofdcontent

File Connector for Cordys BOP4

When I wanted to use files to read from a directory I had to install the file connector of Cordys. Unfortunately I could not find much documentation of it on the Cordys wiki, so I started to find it out myself. This blog guides you through the installation, configuration and use of the File Connector package.

I use the latest BOP4 VM environment and the file connector isv package can be found here.

Install ISV Package


  • Goto Application Registry (Note: This is only available within organization "system")



  • Select Install New Applications
  • Click “Upload New Application”
  • Select the .isvp file (in our example the CoE_File Connector_1.2.14.isvp)
  • Check “Cordys CoE File Connector 1.2” and click “Start Installation”



  • Click Next

  • Check the connector and click next
  • Click Install
  • The package should be installed and the next window is shown



  • Click Finish

Configuration


  • Goto System Resource Manager
  • Show All Service Groups
  • New Service Group


  • Select File Connector and Next
  • Fill in Service Group Details



  • Click Next
  • Fill in Service Container Details


  • Click Next
  • Fill in File Connector configuration where to read files




  • Click Next
  • Leave Connection Point Details default settings
  • Click Finish
  • Notice in the Service Containers window that the File Connector is starting or started

Configuring of File Polling


  • In the File Connector just created you can configure the Reader- and Writer configurations
  • Goto Properties of the File Connector
  • Click the File Connector Tab



  • Go to the XMLStore



  • Create fileconnector and config directories
  • Create New Item within config directory: reader-config.xml

Content:

  
    BPM
    /home/declaraties
    *.xml
    10
    
      FunctieDeclaratie
      http://schemas.cordys.com/default
      o=Organization1,cn=cordys,cn=defaultInst,o=cordys.com
      cn=Student1,cn=organizational users,o=Organization1,cn=cordys,cn=defaultInst,o=cordys.com
      
        definition
        Business Process Models/FunctieDeclaratie
        
          
        
        Run from Directory Poller
      
    
  
 

Use of File Interface


  • In WebServices Folder in the Workspace select Add Runtime Reference – Webservice Interface



  • Select File Connector and click Finish



  • Now you can use the methods within a Process


  • When you run the operation you can get the error:
    “Student1 not in the any role …”. This is due to the fact that the user has to have the “everyone” role (Do not forget to check “Include internal roles”)



Reacties

  1. Have you tried poller-config to trigger a business process when receiving a file ?
    I am in touch Cordys guy but can not make it work. The file I am trying to retrieve is on remote server (Iseries / IFS) which is mounted on the Linux Cordys server.
    Regards,
    Brieuc

    BeantwoordenVerwijderen
  2. I only got the operations work and not the polling mechanism. Did you manage to retrieve the file locally on the Linux Cordys Server? Or is the file picked up but the process is not executed ?

    BeantwoordenVerwijderen
  3. Hi Roger,

    The issue was coming from permissions on the ISeries side, the service could not move the files when attempting to poll. Changed the permissions and it is ok...

    Regards,
    Brieuc

    BeantwoordenVerwijderen
  4. how to create custom connector?

    BeantwoordenVerwijderen

Een reactie posten

Populaire posts van deze blog

OSB 10gR3 and SWA and MTOM

This blog is about using soap with attachments and the use of MTOM within the OSB (10gR3). A service is created that accepts a soap with attachment (DocumentService) and translates it to a service that accepts a binary element. MTOM is used for performance reasons for the second. Some notes: * For the use of attachments you need RPC-style document instead of the usual document-style. This due to the fact that the document-style limits a message to a single . * A service can not have both SWA and MTOM within OSB. First a WSDL is setup for the DocumentService: The $attachments variable holds the attachments and the body holds the attachment data. Also other data is stored within the attachment element (see h

Microservices mindmap

"The tree" - See also   my photo page When you are fairly new within the Microservices land, there are a lot of terms fired at you. So also for my own understanding i have made a mindmap. I think it has a good status now, so that i can share it with you. As always feedback is very welcome ! You can download the mindmap here .

Book review: Data Management at Scale (Piethein Strengholt)

 This blog is a review of the book "Data Management at Scale (See also at bol.com ) Data Management is a hot topic nowadays and this book does a fantastic job at adding value to this topic. It is a must read and one of the few technical books I finished reading in a weekend. The book gives a fantastic overview on how to implement a Data Mesh data architecture. The Data Mesh concept is explained by Martin Fowler here . The book is a good mix between conceptual and implementation architecture level. It gives a lot of examples of how this architecture at scale can work, for both small and big companies. It is practical and I used it to implement it at one of my customers. The book describes an architecture in which the focus is on the DIAL (Data- and Integration Access Layer).  On a high level the book covers the following topics: The key principles for data management at scale - Domain-Driven Design  - Domain Data Stores - Meta data management Ready Data Store The concept of servin