Mat_G

Results 2 comments of Mat_G

In Python we got None and following worked. `from durable.lang import * with ruleset('handle_nulls'): @when_all(m.amount != None) def check_amount(c): print(f"Processing amount: {c.m.amount}") @when_all(m.amount == None) def handle_null(c): print("Mmessage with None...

Do you mean something like the following? ` from durable.lang import * with ruleset('accumulated_fraud_detection'): @when_all(+m.amount) def accumulate_amount(c): if c.s.total_amount is None: c.s.total_amount = 0 c.s.total_amount += c.m.amount print(f"Current total amount:...