Date: Thu, 28 Mar 2024 17:35:14 -0500 (CDT) Message-ID: <1823163855.39103.1711665315042@kodak01.contegix.mgmt> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_39102_1192896444.1711665314986" ------=_Part_39102_1192896444.1711665314986 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Experienced programmers can write code to customize the Rule Parameters =
Editor.
If you know how to write in a programming language that the Microsoft .NET=
Framework supports, such as Microsoft Visual Basic, C#, or C++, you can us=
e it to assign values to parameters.
The Visual Basic language is supported natively in the RBA software. You c=
an also use other languages, as long as you create the code libraries exter=
nally and then import the managed .dll
file..dll
files, the .NET Fr=
amework does not provide feedback to the RBA system about exceptions. You m=
ust troubleshoot any code problem yourself.
Writing code is useful when you want do things that are not possible in = Rule Parameters Editor. The basic constructs for storing code in an RBA rul= e are:
Config=
ureAction()
.ConfigureAction().
ConfigureActio=
n()
.R=
un()
.The Rule Engine only executes code in the ConfigureAction()
=
and Run()
subroutines. This code is wrapped invisibly in the =
supporting code for the Rule Engine. You cannot add your own import stateme=
nts, and you must refer explicitly to object types by namespace.
You can create and load your own code libraries in your RBA code. This is =
useful for re-using code in more than one place and allows you to work in p=
rogramming languages other than Visual Basic.
&nbs=
p;Writing code
Parameter Code Editor includes tools to help you write code. If you are = more comfortable using another tool, such as Microsoft Visual Studio or a t= ext editor, you can write code in it and then copy and paste the code into = Parameter Code Editor.
&nbs=
p;Removing code
If you later decide to stop using code for a particular event-action pai= r, right-click the line between the event and action, and select Re= set to Default.