Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Invoke Workflow via REST API with Input Parameter of type Any

$
0
0

I'm running VRO 7.3.

 

Has anyone successfully invoked a workflow with an input parameter of type Any before?  I'm trying it with this execution context and it's not working:

 

 

{

  "parameters": [

  {

"value": {

"properties": {

"property": [

{

"key": "p1",

"value": {

"number": {

"value": 1.0

}

}

},

{

"key": "p2",

"value": {

"string": {

"value": "two"

}

}

},

{

"key": "p3",

"value": {

"date": {

"value": 1501015223000

}

}

}

]

}

},

"type": "Any",

"name": "any",

"scope": "local"

  }

  ]

}

 

It passes and executes the WF, but it fails with the following error:

 

"Unable to convert any type ()"

 

I see a difference between my execution via REST and the one VRO does using the GUI:

 

GUI:

Properties##[#p1#=#number#1.0#+p2#=#string#two#+#p3#=#Date#20170725164023-0400#]#

 

 

REST:

#[#p1#=#number#1.0#+p2#=#string#two#+#p3#=#Date#20170725164023-0400#]#

 

 

 

Note the "Properties#" is missing when I call the workflow via REST.  I'm sure this is the issue, but given all of the examples I've seen I'm doing things correctly. 

 

Any ideas are appreciated!


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>