Greetings. We are using LF 9.2 and the SDK, mashed up with workflow.
Goal is to grab a PDF from the current folder, translate it to a memorystream, and then pass to a DLL, which will determine if the PDF is static or dynamic, returning other values, etc.
Getting stuck on the GetDocumentInfo call, in terms of what to provide for the session.
1. Does this seem like the proper approach for the PDF output?
2. Is there a "me" property or method that will enable us to latch onto the current session?
2a. Where can I find more documentation on the "me / this" object as it relates to workflow
Thank you!
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.SqlClient
Imports System.Text
imports DocumentProcessor92
imports Laserfiche.Workflow.Activities
imports Laserfiche.DocumentServices
imports System.IO
imports Laserfiche.RepositoryAccess
Namespace WorkflowActivity.Scripting.Script
'''<summary>
'''Provides one or more methods that can be run when the workflow scripting activity is performed.
'''</summary>
Public Class Script1
Inherits SDKScriptClass90
'''<summary>
'''This method is run when the activity is performed.
'''</summary>
Protected Overrides Sub Execute()
' other vars not related
dim PDFType as String = ""
dim errMsg as String = ""
dim pdfObj as New PDFLockCheck2.myPDF
dim ms as MemoryStream = new MemoryStream
dim docEx as Laserfiche.DocumentServices.DocumentExporter = new Laserfiche.DocumentServices.DocumentExporter()
dim di as Laserfiche.RepositoryAccess.IDocumentContents
di = document.GetDocumentInfo(Entry.ID, [ what goes here for connection ] )
docEx.ExportElecDoc(di , ms)