This is a sample script for KIC to demonstrate the ability to set the Kofax batch priority during import.
//GAC:Microsoft.CSharp.dll,System.IO.dll
using System;
using System.Collections.Generic;
using System.Text;
using Kofax.KCS.ImportConnector.Config;
using Kofax.KCS.ImportConnector.Messages;
using Kofax.KCS.ImportConnector.Scripting;
using System.IO;
using System.Linq;
using Microsoft.Win32;
namespace Kofax.KCS.ImportConnector.ScriptingSample
{
public class SetBatchpriority : ReRoutingScript
{
public override eMessageScriptCode ReRoute(Message message, object extension)
{
const string keyName = "KfxOriginatorService";
if (message.Fields.ContainsKey(keyName))
{
if (message.Fields[keyName] == "EMAIL")
{
message.SetBatchPriority(10);
}
}
eMessageScriptCode scriptStatus = eMessageScriptCode.Other;
return scriptStatus;
}
}
}