Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 244595

Re: Scripting objects lost after an User Interaction element is run?

$
0
0

Hi Joerg,

 

     Thank you very much for the response! What you said is right, it turns out that I haven't configured my PluginFactory correctly after all.

 

     Based on your input, I modified the method find(String type, String id) in my PluginFactory class to return a solid object (as an experiment I return the same object regardless of what the input is) and finally it worked.

 

     But still this solution left me with some questions:

 

    1. My objects are being transferred between my script elements perfectly, until I inserted an User Interaction element in between, how can this be explained? Is the logic for finding an object in a script element and an User Interaction element somehow different? From a plugin developer's perspective, it doesn't make sense to me that I have to put more efforts to make the objects transferrable through User Interaction elements when thery are already transferrable through script elements.
    2. If I'm to make the PluginFactory find the correct object, I'll probably have to maintain those objects on the server side, just like how the SolarSystem plugin keeps all the celestial body objects in memory, but this doesn't really match my intention. My objects are all one-off objects that are created at the start of my workflow and should be discarded at the end of the workflow. I don't want to keep them as permanent objects, which in my opinion, would only be necessary if you want to impelment an inventory.

 

     To put it in a nutshell, everything works perfectly until the User Interaction element barged in, to fix which I'll have to do more work that doesn't fit my use case. Please correct me if I'm wrong and if there's a solution that doesn't require keeping the objects on the server side, it would be awesome! Thanks!


Viewing all articles
Browse latest Browse all 244595

Trending Articles



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