Skip to content

Instantly share code, notes, and snippets.

@MikeGrace
Created August 10, 2010 20:41
Show Gist options
  • Save MikeGrace/517961 to your computer and use it in GitHub Desktop.
Save MikeGrace/517961 to your computer and use it in GitHub Desktop.
Raise explicit events in your Kynetx app!
ruleset a60x294 {
meta {
name "explicit-event-data-test"
description <<
explicit-event-data-test
>>
author "Mike Grace"
logging on
}
dispatch {
domain "example.com"
}
global {
}
rule raise_event is active {
select when pageview ".*"
noop();
fired {
raise explicit event mustafa
with expression = "I'm on a horse?"
and result = "true";
}
}
rule react is active {
select when explicit mustafa
pre {
a = event:param("expression");
b = event:param("result");
}
{
notify(a,b) with sticky = true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment