B2B Integration

 View Only

PGP Encryption & Decryption using payload as Filesystem

  • 1.  PGP Encryption & Decryption using payload as Filesystem

    Posted Thu January 11, 2024 01:08 AM

    Hi Team,

    Greeting of the day, Here I have a scenario that when ever the business process triggers it should collects the files from a particular folder and should encrypt and should place in a directory. For this scenario  we have developed a business process but we are getting the error "Either a document id should be provided or the primary document should be provided". Here we are using 2 operations FSCOLLECT & PGPPackageService. FSCOLLECT will collect the files and should give the collected input files to the PGPPackageservice so that it will encrypt and keep it in the destination.
    FYI Below is the BP we are using 

    <process name="Pronteff_PGP_Encrypt">
    <sequence name="optional">
    <operation name="File System Adapter">
         <participant name="AS3FSAdapter"/>
         <output message="FileSystemInputMessage">
           <assign to="." from="*"></assign>
           <assign to="Action">FS_COLLECT</assign>
           <assign to="collectionFolder">/opt/encrypt</assign>
         </output>
    <input message="Xin">
           <assign to="." from="*"></assign>
         </input>
       </operation>
    <operation name="One">
    <participant name="PGPPackageService"/>
    <output message="Xout">
    <assign to="." from="*"></assign>
    <assign to="profile_name">AFTPGPProfile</assign>
    <assign to="compress">on</assign>
    <assign to="workingDir">/opt/encrypt/</assign>
    <assign to="remoteName">localhost</assign>
    <assign to="remotePort">8132</assign>
    <assign to="public_user">BOBFINPGP</assign>
    </output>
    <input message="Xin">
    <assign to="." from="*"></assign>
    </input>
    </operation>
    </sequence>
    </process>
    But here it is unable to give the input for pgp package service. Kindly provide the solution if we are missing any logic or any operation.


    ------------------------------
    Laxman Porandla
    ------------------------------