Skip to content

Instantly share code, notes, and snippets.

@rushfrisby
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rushfrisby/ac4aedf49ec4b1270c9e to your computer and use it in GitHub Desktop.
Save rushfrisby/ac4aedf49ec4b1270c9e to your computer and use it in GitHub Desktop.
RulePlex JavaScript Rule "Compiled"
function ExecuteRules(data)
{
(function Rule004596ed979540878bc366521663501d(data)
{
var sw004596ed979540878bc366521663501d = new Stopwatch();
sw004596ed979540878bc366521663501d.Start();
var result004596ed979540878bc366521663501d = new Result();
result004596ed979540878bc366521663501d.RuleId = Guid.Parse("004596ed-9795-4087-8bc3-66521663501d");
try
{
result004596ed979540878bc366521663501d.PassedCondition = (function Condition004596ed979540878bc366521663501d(data)
{
return true;
})(data);
if (result004596ed979540878bc366521663501d.PassedCondition)
{
result004596ed979540878bc366521663501d.Value = (function ActionResult004596ed979540878bc366521663501d(data)
{
return JSON.stringify(true);
})(data);
result004596ed979540878bc366521663501d.Error = null;
}
}
catch (ex004596ed979540878bc366521663501d)
{
result004596ed979540878bc366521663501d.Value = null;
result004596ed979540878bc366521663501d.Error = ex004596ed979540878bc366521663501d.name + ": " + ex004596ed979540878bc366521663501d.message;
}
sw004596ed979540878bc366521663501d.Stop();
result004596ed979540878bc366521663501d.ExecutionTime = sw004596ed979540878bc366521663501d.ElapsedMilliseconds;
__results.Add(result004596ed979540878bc366521663501d);
})(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment