Use the C# Script activities to write .Net scripts.
The
TotalAgility Designer
allows you to create two types of .Net Script activities: C# and VB.Net.
When configuring a script, right-click on the rule editor and select the process and server variables to add to the script..
TotalAgility
can validate and run a script without requiring the script developer to build and deploy .Net assemblies. The .Net compliance
of
TotalAgility
reduces development time and increases the ease of deployment.
In this sample C# script, firstname and surname are input variables. The value of these variables is used to construct the
value of the fullname variable, which is an output variable.
using System;
using Agility.Server.Scripting.ScriptAssembly;
namespace MyNamespace
{
public class Class1
{
public Class1()
{
}
[StartMethodAttribute()]
public void Method1(ScriptParameters sp)
{
string firstname = {string}sp.InputVariables["FirstName((Process variable)"].ToString();
string surname = {string}sp.InputVariables["surname(Process variable)"].ToString();
sp.OutputVariables"[fullname]" = firstName + " " + surname ;
}
}
}
The script only works if firstname and surname are set as input variables, and fullname is set as an output variable.
The search returns topics that contain terms you enter. If you type more than one term, an OR is assumed, which returns topics where any of the terms are found. Enclose your search terms in quotes for exact-phrase matching.
The search also uses fuzzy matching to account for partial words (such as install and installs). The results appear in order of relevance, based on how many search terms occur per topic. Exact matches are highlighted.
To refine the search, you can use the following operators:
Type + in front of words that must be included in the search or - in front of words to exclude. (Example: user +shortcut –group finds shortcut and user shortcut, but not group or user group.)
Use * as a wildcard for missing characters. The wildcard can be used anywhere in a search term. (Example: inst* finds installation and instructions.)
Type title: at the beginning of the search phrase to look only for topic titles. (Example: title:configuration finds the topic titled “Changing the software configuration.”)
For multi-term searches, you can specify a priority for terms in your search. Follow the term with ^ and a positive number that indicates the weight given that term. A higher number indicates more weight. (Example: shortcut^10 group gives shortcut 10 times the weight as group.)
To use fuzzy searching to account for misspellings, follow the term with ~ and a positive number for the number of corrections to be made. (Example: port~1 matches fort, post, or potr, and other instances where one correction leads to a match.)
Note that operators cannot be used as search terms: + - * : ~ ^ ' "