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