Example of global Rules Script in C#

  • 31 Views
  • Last Post 4 days ago
ToMu2 posted this 1 weeks ago

Hello,

could someone provide an example of an global Rules script in C#. I have trouble getting the syntax/namespaces right. 

Global Script

using ABBYY.FlexiCapture;
class Test {
   test() {
   FCTools.ShowMessage("Hello World!");
   }
}

Document Rule Script

Rules.Test.test();

Thank you,

Tobias

Attached Files

Vladimir.Dimitrijevic posted this 4 days ago

Hi Tobias,

Here is the sample:

Global rule script:

public static class TobiasString
{
    public static string SomeStringName = "Hello world!";
}

Rule:

Context.Field("SomeField").Text = TobiasString.SomeStringName;

Best regards,
Vladimir

Close