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

objectToJSON() Issue

$
0
0

I'm running into an interesting issue.

 

In one of my workflows I build a custom object to hold all sorts of information to pass between actions/workflows, basically so I don't have to deal with 50 attributes in each workflow. I use the following code immediately after creating the object/structure:

 

System.debug(System.getModule("com.vmware.web.webview").objectToJson(CreationInfo));

 

This code will successfully print the JSON formatted object to the debug log so I can inspect the information within and use the values for further debugging.

 

However, when I try and later insert a script that uses the exact same code to print the object later in the workflow i get an error:

 

Invalid JavaScript value of type java.util.Hashtable (Dynamic Script Module name : serialize#23)

 

It seems I cannot print the object after it has been stored into an attribute and then retrieved again. This occurs even when the step immediately following the creation of the object is the above code (no changes made to the custom object elsewhere).

 

What am I missing?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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