Replies:

Hello,

I understood my mistake. I passed the reference of my object in context variable and everything is ok. Thank you all.

Hello Olivier,

thanks for your answer. Il have modified some options and now, il have an another error.

10:45:19.295:Thread1: Erreur <Ens>ErrException: <PROPERTY DOES NOT EXIST>zS1+5^Demo.DemoBPL.Thread1.1 *%Process,Demo.Person.Record --  - connecté en tant que '-' numéro - @' Set request.%Process = process'

This is the generated code. Is it a Bug ? Set request.%Process  = process : %Process does not exist

Method S1(process As Ens.BusinessProcess, context As Ens.BP.Context, synctimedout As %Boolean, syncresponses As %ArrayOfObjects(ELEMENTTYPE="%Library.Persistent"), request As %Library.Persistent, response As %Library.Persistent) As %Status [ Language = objectscript, PublicList = (process, context) ]
{
 Set $ZT="Trap",status=$$$OK do {
 Do ##class(Ens.Util.Trace).WriteTrace("user","Demo.DemoBPL","S1","debut")
 Do ##class(Ens.Util.Trace).WriteTrace("user","Demo.DemoBPL","S1",request.Age)
 Do ##class(Ens.Util.Trace).WriteTrace("user","Demo.DemoBPL","S1","fin")
 Set request.%Process = process

Set status=##class(Ens.Rule.RuleDefinition).EvaluateRulesEx("Demo.IsItYoung",,request,"testAge",.ruleReturn,.ruleReason,,process.RuleLogging) Quit:$$$ISERR(status)
 Set context.IsYoung = ruleReturn

Followers:
claude has no followers yet.
Following:
claude has not followed anybody yet.
Global Masters badges:
claude has no Global Masters badges yet.