Clarity

  • 1.  Attach document from GEL script?

    Posted Jan 22, 2011 09:16 PM
    We have a GEL process script that invokes a java class that emails an html file to specific project roles. Is there a way for the GEL script (or other process action) to attach the document to the Clarity project?


  • 2.  RE: Attach document from GEL script?

     
    Posted Jan 25, 2011 03:01 PM
    Hi All,

    Any ideas here for Sue?

    Thanks!
    Chris


  • 3.  Moving to Clarity XOG/GEL/WSDL board

     
    Posted Jan 25, 2011 03:01 PM
    Moving to Clarity XOG/GEL/WSDL board


  • 4.  RE: Attach document from GEL script?

    Posted Feb 04, 2011 12:22 PM
    I forgot to mention in my previous post that the document is saved on the application server in a specific location, so the GEL script knows how to find the file. The problem is how to upload it?


  • 5.  RE: Attach document from GEL script?
    Best Answer

    Posted Feb 04, 2011 02:07 PM
    are you hoping to load the document into the document management part or attach it to a custom field? This is the XML for a custom field.
     <Project name="my project" projectID="prj-001">
    
    <CustomInformation>
    
       <ColumnValue name="document-field-name">
    
          <Documents>
    
             <Parent documentLocation="/where/my/document/is">
    
                   <Document fileCreatedDate="2011-02-03T00:00:00"
    
                      hasAllParticipants="1" language="en" name="name-of-my-doc.doc"
    
                      numCheckoutDays="0" mimeType="x"
    
                      versioningEnabled="0">
    
                      <Version id="1" versionNumber="1" />
    
                   </Document>
    
                </gel:forEach>
    
             </Parent>
    
          </Documents>
    
       </ColumnValue>
    
    </CustomInformation>
    </project>
    /Mark


  • 6.  RE: Attach document from GEL script?

    Posted Feb 08, 2011 10:46 AM
    Mark,
    Thank you! I was looking to put it into document manager, but this will do if I can't figure that one out.