Page 1 of 1

userExitCode

Posted: Tue May 06, 2025 5:01 pm
by CLD
Starting a non-gui jade.exe app from a .bat batch file.

Within the executing jade code, setting the 'userExitCode' to 33 as per the documentation. (beginTransaction; node.userExitCode := 33; commitTransaction; terminate;)

Have been unable to get a return %errorlevel% other than 0.

.ini file contains:
[FaultHandling]
StandardExitValues=false

Any suggestions as to what I am going wrong?

Thank you.

Re: userExitCode

Posted: Thu May 08, 2025 4:08 pm
by JohnP
Fat client or thin client? What Jade release level?

Re: userExitCode

Posted: Thu May 08, 2025 4:57 pm
by CLD
Appreciate the interest. Thank you.

Jade Client: thin, running on Windows 10 Pro, Windows Server 2019 Data Center (64bit) and Windows 7 (but I can live without Windows 7!)
Jade Version: 6.3.12

Documentation is confusing - some places 'process.userExitCode', and other places 'node.userExitCode'. Only 'node.userExitCode' is available.

Cheers

Re: userExitCode

Posted: Mon May 12, 2025 12:50 pm
by JohnP
process.userExitCode became available in Jade 2016 SP 1 (16.0.02), so it isn't in 6.3.

node.userExitCode sets the exit code of the node, so for thin client that means the appserver, not the presentation client.

Re: userExitCode

Posted: Mon May 19, 2025 11:02 am
by CLD
Thank you John. Cheers