Absent Member.. JasonCantrell Absent Member..
Absent Member..
58 views

[OO Tip] "gropus.names" will be empty on "Invoke Method 2"

Problem:

 

Using Operations Orchestration (OO) and /Library/Operations/Wizards/Web Service/Invoke Method 2, usesJSON does not work correctly if the element has dot(".") in the name.
From CP07, "Invoke Method 2" has a new input parameter of "usesJSON", and allows XML type input or JSON type input for array parameters.
If "usesJSON" is set as "false"(default), the following format for input for array can be used:
input0=value0
input1=value1
input2=value2
 ....
 
If "usesJSON" is set as "true", the following format can be used:
input0=["value0","value1","value2"]
 
Expected result is that both should work in the same way.
 
However, if usesJSON is set as true, and following input is used, for example,
users.username=user1
groups.name0=["value0","value1","value2"]
 
The flow sends the following packet to the server which is wrong.
( "gropus.names" will be empty )

 

Solution:

 

For using usesJSON=true for the array element with name with a "."

Change inputMap as follows:

inputMap:
createUser|user|groups.name|*|groups.name=groups*
createUser|user|username=user.username
The JSON array input:
groups0=["value0","value1","value2"]
 
After modification then the desired result will be achieved.

 

Direct link to the document here:

http://support.openview.hp.com/selfsolve/document/KM00715412

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.