Community

Example of global Rules Script in C#

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

0

Comments

1 comment

  • Avatar
    Vladimir Dimitrijevic

    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

    0

Please sign in to leave a comment.