Home Applications production-settings

production-settings

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
165
Views
100
IPM installs
2
0
Details
Releases  (3)
Reviews  (1)
Issues
Dependants  (3)
Module to change InterSystems Interoperability Production settings

What's new in this version

Support un-initiated settings

Gitter
Quality Gate Status
Reliability Rating

License: MIT

production settings helper

This util helps to init InterSystems Interoperability production with certain values. It can let you init the value for a given production, production item (business service, operation, etc) and a given setting.

Description

Sometimes we need to init the production before start. It could be different API keys, secrets, tokens, etc.
This utility will help to simplify the process.

Installation

zpm "install production-settings"

Usage

Consider you have a production where you want to change the port for the HTTP Inbound Service. This is the line you can use:

do ##class(shvarov.i14y.Settings).SetValue("ProductionName","ServiceOrOperationName","Setting",Value)

For example:

do ##class(shvarov.i14y.Settings).SetValue("Test.shvarov.i14y.TestProduction","InboundService","Port",8888)

Similar if you want to obtain the current setting from the production element you can use:

w ##class(shvarov.i14y.Settings).GetValue("Test.shvarov.i14y.TestProduction","InboundService","Port")

known issues

The utility works only for the settings that were preinitialized in the production. E.g. in the production below the setting Port could be altered:

<Production Name="Test.shvarov.i14y.TestProduction" LogGeneralTraceEvents="false">
  <Description></Description>
  <ActorPoolSize>2</ActorPoolSize>
  <Item Name="InboundService" Category="" ClassName="EnsLib.HTTP.GenericService" PoolSize="1" Enabled="false" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
    <Setting Target="Adapter" Name="Port">2222</Setting>
  </Item>
</Production>

Made with
Install
zpm install production-settings download archive
Version
1.0.420 Jun, 2023
ObjectScript quality test
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for Health
First published
11 Jun, 2023
Last checked by moderator
15 Oct, 2024Works