Hi,
We have a client using Workflow SDK scripts written in WF 8.3 which they have imported into a Workflow 9.1 system. This seems to cause the script to no longer work as it seems it doesn't recognise the LFSO83Lib reference.
Should Workflow 8.3 SDK Scripts continue to function in WF 9.1 or will they need to be rewritten? The script we have is a fairly simple one that checks entry access on a folder prior to trying to save a document there.
Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Data.SqlClient Imports System.Text Imports LFSO83Lib Namespace WorkflowActivity.Scripting.SDKScript '''<summary> '''Provides one or more methods that can be run when the workflow scripting activity is performed. '''</summary> Public Class Script1 Inherits SDKScriptClass83 '''<summary> '''This method is run when the activity is performed. '''</summary> Protected Overrides Sub Execute() Dim TargetFolder AS LFFolder = Me.Database.GetEntryByPath(GetTokenValue("tkTargetFolder")) Dim UserName As ILFSecurableTrustee = Me.Database.GetTrusteeByName(GetTokenValue("Initiator")) 'Dim SecureUserRights AS LFEffectiveRights = TargetFolder.ACLDisplayRights (UserName) Dim SecureUserRights AS LFEffectiveRights = TargetFolder.EffectiveRightsByTrustee (UserName) Dim rights as Boolean = SecureUserRights.HasRight(Access_Right.ENTRY_CREATE_DOC) If rights = False Then SetTokenValue("HasRights", "False") Else SetTokenValue("HasRights", "True") End If 'MsgBox(GetTokenValue("HasRights")) End Sub End Class End Namespace
I tried adding a reference to Interop.LFSO83Lib which resolves most errors but then has a problem with Me.Database?
WF 9.1 seems to default to using RepositoryAccess instead of LFSO83. If these Workflows are imported into a WF 9.1 system after being exported from WF 8.3 will any conversion take place?
Thanks,
Nigel.