- Log in to post comments
User bio
404 bio not found
Member since Nov 9, 2015
Posts:
Replies:
Hi Otto
Yes that is correct:
Ens.Config.Item.GetSetting() does not account for System Default Settings. It just walks the item's Settings list property
Ens.Config.Item.GetModifiedSetting() does account for System Default Settings.
- It walks the item's Settings list property for the setting name and if found returns that value.
- If not found it looks to System Default Settings and if found returns that value.
- If not found it looks to the class code for any initial value specified for the property with that setting name.
- Log in to post comments
If you set Reply Code Actions to :*=R
Retry Interval to 3600
And Failure Timeout to -1
Once a message is sent to the BO it will lead to the message being resent every hour but in my testing there is the downside that you get an error reported for the BO each time since treated as an error even though the message is resent each retry interval and the response is retrieved:
| ERROR <Ens>ErrGeneral: Retrying HL7 Message body 8@EnsLib.HL7.Message / 267403 because response 17@EnsLib.HL7.Message / 267405 MSA code 'CA' matched ReplyCodeAction 1 : ':*', resulting in Action code R : MSH|^~\&|EnsembleHL7|ISC|Unity|GlobaSys Partners|202509241126||ACK^A01|20250924F2849|T|2.3.1 MSA|CA|20250924F2849 [doReplyAction+13^Ens.BusinessOperation.1:HL7] |
- Log in to post comments
Certifications & Credly badges:
James has no Certifications & Credly badges yet.
Followers:
James has no followers yet.
Following:
James has not followed anybody yet.
We need to persist the metadata object as well. So one option is to have
bd.webapp.OutboundMessageRequestMetadata Extends (%SerialObject, %JSON.Adaptor)
then with the following %ShowContents (note Write changed to Do to remove status output of 1)
Method %ShowContents(pZenOutput As%Boolean = 0) { If$ISOBJECT(..MessageContent) { Set json = ..MessageContent.%ToJSON() set formatter = ##class(%JSON.Formatter).%New() If pZenOutput { Do formatter.Format(json) } Else { Write json } } If$ISOBJECT(..Metadata) { do..Metadata.%JSONExportToString(.jsonExport) set formatter = ##class(%JSON.Formatter).%New() Write:$ISOBJECT(..MessageContent) ",",! If pZenOutput { Do formatter.Format(jsonExport) } Else { Write jsonExport } } }