Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1022071 // Gazelle: Rule Notification Test [OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (5907L/31K).

!7

cmodule GRuleNotificationTest > DynSingleFunctionWithPrintLog {
  //LS messages = synchroList();
  transient LS matchOn = ll('gazelleRuleChanged, 'gazelleRuleDeleted);
  
  start {
    dm_vmBus_onMessages_directArg(matchOn, voidfunc(S msg, O arg) {
      print(msg + ": " + getString globalID(arg));
    });
  }
  
  void doIt {
    print("Adding");
    S ruleID = pairA(dm_gazelle_addRuleWithComment("test " + aGlobalID(), "disable\njust for testing"));
    print("Changing");
    gazelle_addCommentToRule(ruleID, "bla");
    print("Deleting");
    dm_gazelle_deleteRule(ruleID);
    print("Deleted");
  }
}

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: 197 / 287
Version history: 5 change(s)
Referenced in: [show references]