How to create REST UPROC with variables?
search cancel

How to create REST UPROC with variables?

book

Article ID: 282250

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

We have a scenario where we want to create REST UPROC and we than want to deploy them to various nodes. Within each node there are some values need to be changed in the UPROC. 

How can we create such a UPROC and use it across nodes with different values during execution.

Environment

Component: DOLLAR UNIVERSE

Release: 6.x, 7.x

Resolution

To create such a UPROC, you need to make use of UPROC variables. To know more about UPROC variable please refer Tech Doc> UPROC Variable

Step to design such UPROC

  • The Design consideration for such REST UPROC will be that they will be using UPROC variable for the values which will change for each node the UPROC is deployed. 

Example: In below example there is a UPROC variable i.e. PROJECTID which is than used in Type=WS_REST definition(right side screenshot)

  • Deploy the UPROC on target nodes
  • On target node load the environment and run below command to update UPROC variables value.
    • Load environment: unienv.bat\ksh
    • Update UPROC Variable: uxupd upr upr="UPROC NAME" LAUNCHVAR add varname=PROJECTID vtype=T VVALUE=123456
    • Delete UPROC variable: uxupd upr upr="UPROC NAME" LAUNCHVAR dlt varname=PROJECTID

 

Additional Information

Refer below additional knowledge articles around topic