Uses 911K of libraries. Click here for Pure Java version (5907L/31K).
1 | !7 |
2 | |
3 | cmodule GRuleNotificationTest > DynSingleFunctionWithPrintLog {
|
4 | //LS messages = synchroList(); |
5 | transient LS matchOn = ll('gazelleRuleChanged, 'gazelleRuleDeleted);
|
6 | |
7 | start {
|
8 | dm_vmBus_onMessages_directArg(matchOn, voidfunc(S msg, O arg) {
|
9 | print(msg + ": " + getString globalID(arg)); |
10 | }); |
11 | } |
12 | |
13 | void doIt {
|
14 | print("Adding");
|
15 | S ruleID = pairA(dm_gazelle_addRuleWithComment("test " + aGlobalID(), "disable\njust for testing"));
|
16 | print("Changing");
|
17 | gazelle_addCommentToRule(ruleID, "bla"); |
18 | print("Deleting");
|
19 | dm_gazelle_deleteRule(ruleID); |
20 | print("Deleted");
|
21 | } |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022071 |
| Snippet name: | Gazelle: Rule Notification Test [OK] |
| Eternal ID of this version: | #1022071/6 |
| Text MD5: | af9000f959e18c3f0e61c54263687554 |
| Transpilation MD5: | 5675e2acca5b7473cd77df67f303ae21 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-06 12:05:25 |
| Source code size: | 633 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 589 / 759 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |