Claude Mourzelas · Aug 17, 2022 go to post

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

Claude Mourzelas · Aug 29, 2022 go to post

Hello,

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

Claude Mourzelas · Mar 8, 2023 go to post

Hello Robert.,

Thanks for your proposal but it does'nt work.  It involve json schema modification

Claude Mourzelas · Mar 13, 2023 go to post

Hi Enrico,

For example:

{
  "count": 1,
  "success": true,
  "message": null,
      "GEOMETRIE_POLYGON": {
        "GEO_TAB_COORDONNES": [
          [
            [
              [
                674098.0036,
                7048055.5864
              ],
              [
                674101.3851,
                7048049.5203
              ],
              [
                674119.26,
                7048061.81
              ],
              [
                674129.4922,
                7048047.0958
              ]
            ]
          ]
         ]
      }
}

Claude Mourzelas · Nov 20, 2024 go to post

Hello TImo,

In 2024, yes, it is possible but not in 2022.1 version. Wa have upgrade our IRIS version.

Thanks