Code Monkey home page Code Monkey logo

wxconfiglight's Introduction

WxConfigLight

Lightweight and free webMethods IntegrationServer package with a simialar but very reduced API like the official and the one and only WxConfig. It is designed for a simple introduction into configuration management. For advanced usage please switch to the official WxConfig.

How to use

Deploy/checkout WxConfig

Check under releases for a proper release and deploy it. Otherwise you can check out the latest version from GIT and create a link like this:

mklink /J F:\SoftwareAG\IntegrationServer\instances\default\packages\WxConfig F:\GIT-Repos\WxConfig\packages\WxConfig

Build & Reload

If you checkout the sources from GitHub you have to compile the source, e.g. with:

C:\SoftwareAG\IntegrationServer\instances\default\bin\jcode.bat makeall WxConfig

Reload WxConfig

Configure Environment

You should configure your environmentType like this:

WxConfigLight__WxConfigLight__wx.config.environment.type

with values e.g. like:

DEV, CI, TEST, UAT, QA, PROD

in order to use references like this in your file /config/wxconfig.cnf:

wx.config.env.PROD=wxconfig-PROD.cnf

wx.config.env.TEST=../../../config/packages//wxconfig-TEST.cnf

Then you can define environment specific values which are part of your package or outside or your package.

Global variables

The most important thing to say is: WxConfigLight is using the "Global Variables" from IntegrationServer. That is the place where updates are executed and where keys are red from!

In order to use a wxconfig.cnf file like with the official WxConfig like this:

myKey=myValue

myPassword=[[encrypted:myPassword]]
  
myList=1
myList=2

you have to run

http://localhost:5555/invoke/wx.config.admin:replaceVariablesWithGlobalFile?wxConfigPkgName=MyPackage

It will create Global Variables like this:

WxConfigLight__MyPackage__myKey: myValue WxConfigLight__MyPackage__myPassword: ****** (manage -> overwrite) WxConfigLight__MyPackage__myList__: 1 WxConfigLight__MyPackage__myList__1: 2

After loading that one time you can now work on these Global Variables like you are used to.

Consider that two underlines ("__") are a reserved string. Do not use that in your package names and keys!

Hint: You can drop that stuff if you want with

http://localhost:5555/invoke/wx.config.admin:clearAllVariablesOfPackage?wxConfigPkgName=MyPackage

Public services

The following public service should be compatible to the official version (if it works in WxConfigLight it should also work in WxConfig, but not vice versa):

  • wx.config.pub:addValue
  • wx.config.pub:getEnvironmentType
  • wx.config.pub:getValue
  • wx.config.pub:getValueList
  • wx.config.pub:removeValue
  • wx.config.pub:updateValue
  • wx.config.pub.autoSetup:_all: Supports only messaging
  • wx.config.pub.autoSetup:messaging: Supports only triggers

wxconfiglight's People

Contributors

simonhanischsag avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.