@freelog/freelog-cg-collection 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -350,6 +350,8 @@ class CollectionPolicyCustomVisitor extends CollectionPolicyVisitor {
350
350
  this.currentStateObj = {stateName: this.currentState, assignments: [], events: []};
351
351
  if (ctx.state_name_section().service_state_section() != null) {
352
352
  this.currentStateObj["serviceStateSection"] = this.visitService_state_section(ctx.state_name_section().service_state_section());
353
+ } else {
354
+ this.currentStateObj["serviceStateSection"] = {};
353
355
  }
354
356
  if (ctx.state_name_section().state_context_args_section() != null) {
355
357
  this.currentStateObj["stateContextArgs"] = ctx.state_name_section().state_context_args_section().ID().map(i => i.getText());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/freelog-cg-collection",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "antlr4": "4.8.0",
@@ -402,11 +402,6 @@
402
402
  "eventPath": "Time",
403
403
  "eventCode": "T201",
404
404
  "eventId": "04e9cfdc"
405
- },
406
- {
407
- "type": "terminate",
408
- "content": "terminate",
409
- "eventName": "terminate"
410
405
  }
411
406
  ],
412
407
  "serviceStateSection": {
@@ -1769,6 +1764,7 @@
1769
1764
  "eventName": "terminate"
1770
1765
  }
1771
1766
  ],
1767
+ "serviceStateSection": {},
1772
1768
  "stateContextArgs": []
1773
1769
  }
1774
1770
  ]
@@ -22,7 +22,6 @@ Initial None:
22
22
  // Event.Echo.Labels({"subject":echoSubject, "licensee":contract.licensee, "label":"vip1"}) -> AUTH_VIP1
23
23
  Event.Void(not ("vip2" in labels)) -> AUTH_MEMBER{fun.setLabel({"label":"vip2", "ttl":7200})}
24
24
  Event.Time.Relative(1, "minute") -> AUTH_MEMBER{fun.setLabel({"label":"vip1", "ttl":1800})}
25
- terminate
26
25
 
27
26
  AUTH_MEMBER Partial{setUnlocked, setTemp}:
28
27
  Event.Transaction.Pay(amount = unitPrice, elemsNum = 1) -> AUTH_MEMBER{fun.addElements(setUnlocked, contract.licenseeSelectedElems, false)}