Skip to content

Instantly share code, notes, and snippets.

@zerobias
Last active December 30, 2018 02:05
Show Gist options
  • Save zerobias/f84d0300182b2155b88c77f4a82b66f1 to your computer and use it in GitHub Desktop.
Save zerobias/f84d0300182b2155b88c77f4a82b66f1 to your computer and use it in GitHub Desktop.
{
"id": "4",
"type": "seq",
"group": "step",
"data": [
{
"id": "3",
"type": "single",
"group": "step",
"data": {
"id": "2",
"type": "emit",
"group": "cmd",
"data": {"fullName": "trigger"}
}
},
{
"id": "1",
"type": "multi",
"group": "step",
"data": [
{
"id": "o",
"type": "seq",
"group": "step",
"data": [
{
"id": "l",
"type": "single",
"group": "step",
"data": {"id": "k", "type": "compute", "group": "cmd", "data": {}}
},
{
"id": "n",
"type": "single",
"group": "step",
"data": {"id": "m", "type": "filter", "group": "cmd", "data": {}}
},
{
"id": "a",
"type": "seq",
"group": "step",
"data": [
{
"id": "7",
"type": "single",
"group": "step",
"data": {
"id": "6",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "9",
"type": "single",
"group": "step",
"data": {
"id": "8",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "1", "current": 2}}
}
},
{
"id": "5",
"type": "multi",
"group": "step",
"data": [
{
"id": "18",
"type": "seq",
"group": "step",
"data": [
{
"id": "15",
"type": "single",
"group": "step",
"data": {
"id": "14",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "17",
"type": "single",
"group": "step",
"data": {
"id": "16",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "u",
"type": "seq",
"group": "step",
"data": [
{
"id": "r",
"type": "single",
"group": "step",
"data": {
"id": "q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "t",
"type": "single",
"group": "step",
"data": {
"id": "s",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "2", "current": 3}}
}
},
{
"id": "p",
"type": "multi",
"group": "step",
"data": [
{
"id": "1s",
"type": "seq",
"group": "step",
"data": [
{
"id": "1p",
"type": "single",
"group": "step",
"data": {
"id": "1o",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "1r",
"type": "single",
"group": "step",
"data": {
"id": "1q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "1e",
"type": "seq",
"group": "step",
"data": [
{
"id": "1b",
"type": "single",
"group": "step",
"data": {
"id": "1a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "1d",
"type": "single",
"group": "step",
"data": {
"id": "1c",
"type": "update",
"group": "cmd",
"data": {
"store": {"id": "3", "current": 4}
}
}
},
{
"id": "19",
"type": "multi",
"group": "step",
"data": [
{
"id": "2i",
"type": "single",
"group": "step",
"data": {
"id": "2h",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"id": "2c",
"type": "seq",
"group": "step",
"data": [
{
"id": "29",
"type": "single",
"group": "step",
"data": {
"id": "28",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "2b",
"type": "single",
"group": "step",
"data": {
"id": "2a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "1y",
"type": "seq",
"group": "step",
"data": [
{
"id": "1v",
"type": "single",
"group": "step",
"data": {
"id": "1u",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "1x",
"type": "single",
"group": "step",
"data": {
"id": "1w",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "4", "current": 3}}
}
},
{
"id": "1t",
"type": "multi",
"group": "step",
"data": [
{
"id": "2k",
"type": "single",
"group": "step",
"data": {
"id": "2j",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
Seq [
1. emit {{
fullName: trigger
}},
2. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 1,
current: 2
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 2,
current: 3
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 3,
current: 4
}
}},
3. [
* run {{}}
]
]
]
]
]
],
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 4,
current: 3
}
}},
3. [
* run {{}}
]
]
]
]
]
]
]
]
{
"id": "9c",
"type": "seq",
"group": "step",
"data": [
{
"id": "9b",
"type": "single",
"group": "step",
"data": {
"id": "9a",
"type": "emit",
"group": "cmd",
"data": {"fullName": "trigger"}
}
},
{
"id": "99",
"type": "multi",
"group": "step",
"data": [
{
"id": "9h",
"type": "seq",
"group": "step",
"data": [
{
"id": "9e",
"type": "single",
"group": "step",
"data": {
"id": "9d",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "9g",
"type": "single",
"group": "step",
"data": {"id": "9f", "type": "filter", "group": "cmd", "data": {}}
},
{
"id": "4v",
"type": "seq",
"group": "step",
"data": [
{
"id": "4s",
"type": "single",
"group": "step",
"data": {
"id": "4r",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "4u",
"type": "single",
"group": "step",
"data": {
"id": "4t",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "7", "current": 1}}
}
},
{
"id": "4q",
"type": "multi",
"group": "step",
"data": [
{
"id": "5o",
"type": "seq",
"group": "step",
"data": [
{
"id": "5l",
"type": "single",
"group": "step",
"data": {
"id": "5k",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "5n",
"type": "single",
"group": "step",
"data": {
"id": "5m",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5a",
"type": "seq",
"group": "step",
"data": [
{
"id": "57",
"type": "single",
"group": "step",
"data": {
"id": "56",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "59",
"type": "single",
"group": "step",
"data": {
"id": "58",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "8", "current": 2}}
}
},
{
"id": "55",
"type": "multi",
"group": "step",
"data": [
{
"id": "7w",
"type": "seq",
"group": "step",
"data": [
{
"id": "7t",
"type": "single",
"group": "step",
"data": {
"id": "7s",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "7v",
"type": "single",
"group": "step",
"data": {
"id": "7u",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "7i",
"type": "seq",
"group": "step",
"data": [
{
"id": "7f",
"type": "single",
"group": "step",
"data": {
"id": "7e",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "7h",
"type": "single",
"group": "step",
"data": {
"id": "7g",
"type": "update",
"group": "cmd",
"data": {
"store": {"id": "c", "current": 3}
}
}
},
{
"id": "7d",
"type": "multi",
"group": "step",
"data": [
{
"id": "82",
"type": "single",
"group": "step",
"data": {
"id": "81",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"id": "68",
"type": "seq",
"group": "step",
"data": [
{
"id": "65",
"type": "single",
"group": "step",
"data": {
"id": "64",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "67",
"type": "single",
"group": "step",
"data": {
"id": "66",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5u",
"type": "seq",
"group": "step",
"data": [
{
"id": "5r",
"type": "single",
"group": "step",
"data": {
"id": "5q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5t",
"type": "single",
"group": "step",
"data": {
"id": "5s",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "9", "current": 10}}
}
},
{
"id": "5p",
"type": "multi",
"group": "step",
"data": [
{
"id": "6s",
"type": "seq",
"group": "step",
"data": [
{
"id": "6p",
"type": "single",
"group": "step",
"data": {
"id": "6o",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "6r",
"type": "single",
"group": "step",
"data": {
"id": "6q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6e",
"type": "seq",
"group": "step",
"data": [
{
"id": "6b",
"type": "single",
"group": "step",
"data": {
"id": "6a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6d",
"type": "single",
"group": "step",
"data": {
"id": "6c",
"type": "update",
"group": "cmd",
"data": {
"store": {
"id": "a",
"current": 11
}
}
}
},
{
"id": "69",
"type": "multi",
"group": "step",
"data": [
{
"id": "7c",
"type": "seq",
"group": "step",
"data": [
{
"id": "79",
"type": "single",
"group": "step",
"data": {
"id": "78",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "7b",
"type": "single",
"group": "step",
"data": {
"id": "7a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6y",
"type": "seq",
"group": "step",
"data": [
{
"id": "6v",
"type": "single",
"group": "step",
"data": {
"id": "6u",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6x",
"type": "single",
"group": "step",
"data": {
"id": "6w",
"type": "update",
"group": "cmd",
"data": {
"store": {
"id": "b",
"current": 12
}
}
}
},
{
"id": "6t",
"type": "multi",
"group": "step",
"data": [
{
"id": "84",
"type": "single",
"group": "step",
"data": {
"id": "83",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
Seq [
1. emit {{
fullName: trigger
}},
2. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 7,
current: 1
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 8,
current: 2
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: c,
current: 3
}
}},
3. [
* run {{}}
]
]
]
]
]
],
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 9,
current: 10
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: a,
current: 11
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: b,
current: 12
}
}},
3. [
* run {{}}
]
]
]
]
]
]
]
]
]
]
]
]
]
]
{
"id": "9c",
"type": "seq",
"group": "step",
"data": [
{
"id": "9b",
"type": "single",
"group": "step",
"data": {
"id": "9a",
"type": "emit",
"group": "cmd",
"data": {"fullName": "trigger"}
}
},
{
"id": "99",
"type": "multi",
"group": "step",
"data": [
{
"id": "9h",
"type": "seq",
"group": "step",
"data": [
{
"id": "9e",
"type": "single",
"group": "step",
"data": {
"id": "9d",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "9g",
"type": "single",
"group": "step",
"data": {"id": "9f", "type": "filter", "group": "cmd", "data": {}}
},
{
"id": "4v",
"type": "seq",
"group": "step",
"data": [
{
"id": "4s",
"type": "single",
"group": "step",
"data": {
"id": "4r",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "4u",
"type": "single",
"group": "step",
"data": {
"id": "4t",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "7", "current": 2}}
}
},
{
"id": "4q",
"type": "multi",
"group": "step",
"data": [
{
"id": "5o",
"type": "seq",
"group": "step",
"data": [
{
"id": "5l",
"type": "single",
"group": "step",
"data": {
"id": "5k",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "5n",
"type": "single",
"group": "step",
"data": {
"id": "5m",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5a",
"type": "seq",
"group": "step",
"data": [
{
"id": "57",
"type": "single",
"group": "step",
"data": {
"id": "56",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "59",
"type": "single",
"group": "step",
"data": {
"id": "58",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "8", "current": 3}}
}
},
{
"id": "55",
"type": "multi",
"group": "step",
"data": [
{
"id": "7w",
"type": "seq",
"group": "step",
"data": [
{
"id": "7t",
"type": "single",
"group": "step",
"data": {
"id": "7s",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "7v",
"type": "single",
"group": "step",
"data": {
"id": "7u",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "7i",
"type": "seq",
"group": "step",
"data": [
{
"id": "7f",
"type": "single",
"group": "step",
"data": {
"id": "7e",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "7h",
"type": "single",
"group": "step",
"data": {
"id": "7g",
"type": "update",
"group": "cmd",
"data": {
"store": {"id": "c", "current": 4}
}
}
},
{
"id": "7d",
"type": "multi",
"group": "step",
"data": [
{
"id": "82",
"type": "single",
"group": "step",
"data": {
"id": "81",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"id": "68",
"type": "seq",
"group": "step",
"data": [
{
"id": "65",
"type": "single",
"group": "step",
"data": {
"id": "64",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "67",
"type": "single",
"group": "step",
"data": {
"id": "66",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5u",
"type": "seq",
"group": "step",
"data": [
{
"id": "5r",
"type": "single",
"group": "step",
"data": {
"id": "5q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "5t",
"type": "single",
"group": "step",
"data": {
"id": "5s",
"type": "update",
"group": "cmd",
"data": {"store": {"id": "9", "current": 20}}
}
},
{
"id": "5p",
"type": "multi",
"group": "step",
"data": [
{
"id": "6s",
"type": "seq",
"group": "step",
"data": [
{
"id": "6p",
"type": "single",
"group": "step",
"data": {
"id": "6o",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "6r",
"type": "single",
"group": "step",
"data": {
"id": "6q",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6e",
"type": "seq",
"group": "step",
"data": [
{
"id": "6b",
"type": "single",
"group": "step",
"data": {
"id": "6a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6d",
"type": "single",
"group": "step",
"data": {
"id": "6c",
"type": "update",
"group": "cmd",
"data": {
"store": {
"id": "a",
"current": 21
}
}
}
},
{
"id": "69",
"type": "multi",
"group": "step",
"data": [
{
"id": "7c",
"type": "seq",
"group": "step",
"data": [
{
"id": "79",
"type": "single",
"group": "step",
"data": {
"id": "78",
"type": "compute",
"group": "cmd",
"data": {}
}
},
{
"id": "7b",
"type": "single",
"group": "step",
"data": {
"id": "7a",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6y",
"type": "seq",
"group": "step",
"data": [
{
"id": "6v",
"type": "single",
"group": "step",
"data": {
"id": "6u",
"type": "filter",
"group": "cmd",
"data": {}
}
},
{
"id": "6x",
"type": "single",
"group": "step",
"data": {
"id": "6w",
"type": "update",
"group": "cmd",
"data": {
"store": {
"id": "b",
"current": 22
}
}
}
},
{
"id": "6t",
"type": "multi",
"group": "step",
"data": [
{
"id": "84",
"type": "single",
"group": "step",
"data": {
"id": "83",
"type": "run",
"group": "cmd",
"data": {}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
Seq [
1. emit {{
fullName: trigger
}},
2. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 7,
current: 2
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 8,
current: 3
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: c,
current: 4
}
}},
3. [
* run {{}}
]
]
]
]
]
],
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: 9,
current: 20
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: a,
current: 21
}
}},
3. [
* Seq [
1. compute {{}},
2. filter {{}},
3. Seq [
1. filter {{}},
2. update {{
store: {
id: b,
current: 22
}
}},
3. [
* run {{}}
]
]
]
]
]
]
]
]
]
]
]
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment