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

Can not pass an object of type Any to the sub workflow.

$
0
0

Hi,

I want to make a log of each action in an external file.

In an action I am creating an object of type FileWriter(). Opening the connection and then returning this object to main workflow.

In main workflow we catch the output of the action in 'logFile' variable which is declared as an attribute of type 'Any' .

 

Main workflow also has one sub workflow. I am passing 'logFile' object to this sub workflow as an input for collecting the logs. But I am getting an error saying :

"TypeError: Cannot call method "writeLine" of null".

 

 

So how to send the attributes to the sub workflow in form of an object?

It works for non object type variables like number,string, composite type etc.

 

 

Regards,

Shubahda


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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