domain-story Pub

Diesel inventory

send::  msg diesel.inv.register  (inventory<-"diesel", classes<-"TestClass1")

send::  msg diesel.inv.connect  (inventory<-"diesel", connection<-"testconn1")

send::  msg diesel.inv.find  (class<-"TestClass1", key<-"1234")

Calling the inventory directly - just for testing. Normally you call diesel.inv.find:

send::  msg diesel.inv.findByRef  (inventory<-"diesel", connection<-"testconn1", ref:JSON<-{class:"TestClass1"})

expect::  ( ((sizeOf(payload) > 0) and (payload[=0] contains "something")))
send::  msg ctx.set  (payload:Array<-[])

send::  msg diesel.inv.listAll  (inventory<-"diesel", connection<-"testconn1", ref:JSON<-{class:"TestClass1"})

expect::  ( ((sizeOf(payload) > 0) and (payload[=0] contains "something")))

// ## Classes

// $send diesel.nothing // $expect (TestSimpleClass is class) // $expect (TestContainer is class) // $expect (TestEmptyBody is class) // $expect (TestAnnotated is class) // $expect (TestClass1 is class) // $expect (TestWithParms is class)

// ## simple scripting

// $send test.util.today // $expect (payload ~= "....-..-..")

// $send test.util.addMonths(mths=1) // $expect (payload ~= "....-..-..")


Was this useful?    

By: Razie | 2020-10-16 | Tags: story , dsl


Viewed 6 times ( | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2020, all rights reserved.