Skip to content

Instantly share code, notes, and snippets.

Avatar

Ross Ivantsiv rivaros

View GitHub Profile
View operators.json
[
{
"id": 1,
"operators": [
"=",
">",
"<",
"contains"
]
},
View scalars.json
[
{
"id": 1,
"type": "datetime"
},
{
"id":2,
"type": "input"
},
{
View callstack.json
"callstack": {
"id": 1,
"name": "context",
"subcalls": [
{
"name": "getTaskEvent",
"id": 2,
"subcalls": [
{
"name": "getSurvey",
@rivaros
rivaros / operands.json
Last active Aug 29, 2015
Operands Tree
View operands.json
[
{
"name": "Question from Survey 1",
"id": "10123",
"operands": [
{
"name": "Question 1.1 ? ",
"id": "12333",
"operators": 1,
"scalar": 2
View model.json
{
"type": "operator",
"name": "or",
"children": [
{
"type": "operator",
"name": "and",
"children": [
{
"type": "operator",
View gist:3979e07e0becee67959c
===== EXAMPLE 1 =========
["Question from Survey2"]["Question 2-1 ?"]
will be translated as:
context.getTaskEvent(10124).getSurvey().getQuestion(22333).getValue()