Questions tagged [krl]

KRL stands for Kinetic Rule Language. Use this tag for questions regarding KRL applications.

The Kinetic Rule Language was developed by Kynetx and runs on the Kinetic Event Architecture platform. KEA is a cloud-based platform for building real-time, context-aware applications that connect web services across multiple browsers and devices. It is the event layer that glues services like Twilio, Twitter, Google, Facebook, Amazon and others.

KRL is particularly useful for creating Evented systems. KRL is also used for writing Browser Applications. As such, KRL questions frequently overlap with questions about CSS, JavaScript, HTML, and jQuery.

Some places to start:

126 questions
2
votes
1 answer

React differently if second time user visits domain

I am working on building a Kynetx app that fires a different action on a domain if it is the second time a user has visited the page. I think I need to use a persistant trail to mark when a user visits a page but I'm not sure how to check the trail…
Mike Grace
  • 16,636
  • 8
  • 59
  • 79
2
votes
1 answer

How do I inspect and interact with trails in KRL?

I have a trail that I'm using to track app history in KRL. I'm looking for an easy way to debug the trail, including seeing what is currently on the trail and clearing it. Is there an easy way to do that in KRL?
TelegramSam
  • 2,770
  • 1
  • 17
  • 22
2
votes
2 answers

How can I get a users location in a KRL rule?

How can I get a users location in a KRL rule? What is the method? What is the advantage or disadvantage of using that method?
Mike Grace
  • 16,636
  • 8
  • 59
  • 79
2
votes
1 answer

Do KRL rules stop running when a Twilio call ends?

If I create a Toddler Amusement Line (see http://blog.tropo.com/2010/11/22/something-fun-and-quick-to-make-the-toddler-amusement-line/) using Twilio and Kynetx do I need to set a stop condition in my ruleset or will the evaluations end when the…
Randall Bohn
  • 2,597
  • 2
  • 16
  • 20
2
votes
2 answers

parsing url with regular expressions and KRL's replace method

I want to take the current page's URL (using page:env("caller")) and extract a section of it. For instance, I want to take http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=cats and assign cats to a variable. How would I do this with KRL? I…
user898763452
  • 169
  • 1
  • 13
2
votes
2 answers

How can I write a rule that selects on all pages?

In KRL (Kynetx Rule Language), how can I write a select statement that selects on all pages?
Alex
  • 64,178
  • 48
  • 151
  • 180
2
votes
0 answers

KRL Search annotation rules for multiple domains, divs inserting for each domain whether domain matches or not

My KRL search annotation ruleset contains 4-5 rules that each do annotation based on the domain in the search results. I am getting good results, in that the annotations are pretty much when and where they should. However, as I look at the source…
Nathan
  • 75
  • 4
1
vote
1 answer

Raising events in KRL without using explicit

I'm writing an app that raises events, similar to how Phil Windley's personal data manager application works. However, if I try to use any event domain but explicit, the events don't get propagated. The following rules work fine with explicit as the…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
1
vote
1 answer

How do I force the rerun of the app's initial rule?

I have an app that has a login/logout functionality. Upon logout, I am clearing the entity variable. How do I force the app to rerun the initial rule and display the login form?
jshakespear
  • 127
  • 5
1
vote
2 answers

Calling my own JavaScript functions

This problem only manifests itself when my app runs through the KBX. Running it in a bookmarklet works fine. I used to be able to do this, but it doesn't work any more. Here's what I have. There's an onclick attribute on a

tag that calls a…

Steve Nay
  • 2,819
  • 1
  • 30
  • 41
1
vote
1 answer

A strange error about the WAIT FOR statement in KUKA Robot Language(KRL)

When the program reaches "WAIT FOR"(server.src, line 11), the robot stops. And the "START" button must be pressed to continue running. What do I need to do to prevent the robot from stopping when the program reaches "WAIT FOR"? And I use EthernetKRL…
John Tito
  • 13
  • 4
1
vote
1 answer

Assigning actions to a variable

In answering Aaron's recent question, I'd like to do something like the following: rule first_rule { select when pageview "exampley.com/\?name=(.*)" setting (username) pre { isjoe = username eq "joe"; myaction = defaction()…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
1
vote
1 answer

ternary in postlude?

Can I do ternary in the postlude(s) the same way that I do them int he prelude? In other words have it fire off different calls depending on the say something was evaluated in the prelude?
frosty
  • 21,036
  • 7
  • 52
  • 74
1
vote
1 answer

Parsed XML datasource isn’t recognizing “0” values

I'm using an XML datasource in an app. One of the fields called quantity is sometimes zero, thus: 0 However, when I try and get that value, the actual value in the JSON data structure isn't 0, it's just absent. Other fields…
Mike Grace
  • 16,636
  • 8
  • 59
  • 79
1
vote
3 answers

Process client side array in KRL raised to Kynetx app

Overview I am working on building a Kynetx ruleset that will find a bunch of Facebook ids that are on the page and then use the Kynetx Facebook module to get the Facebook avatar associated with that Facebook id. I have the JS that creates an array…
Mike Grace
  • 16,636
  • 8
  • 59
  • 79
1 2 3
8
9