production-settings

Downloads9
Subscribe
1
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues
Dependants

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>

IPM installation
zpm "install production-settings"
Rating
5 (1)
ObjectScript quality test
Passed
Updated on 06 December 2023
ObjectScript quality report
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for Health
Tags
Info
Version
1.0.4
Last updated
2023-06-20
Repository
Open
Documentation
Open
License
Link