Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: We are unable to transfer a parameter value generated in one method of one class to other method in different class. By using evm.object method, we are able to fetch the attribute value within an instance. But unable to access the attribute value accross the methods in different classes. We want the value of a parameter generated in one method to be used in other method of different class. Version-Release number of selected component (if applicable): CloudForms 4.0
The following attempt was unsuccessful: In the setting class' method: $evm.set_state_var(:variable_name, 'value') In the calling class' method: variable_name = $evm.get_state_var(:variable_name) This blog post may also be of use, as it goes into more detail: http://www.jung-christian.de/2015/03/preserve-data-in-manageiq-state-machines/
We were told about the 'Collect' feature, but have not tested this in our environment: https://pemcg.gitbooks.io/introduction-to-cloudforms-automation/content/chapter13/more_advanced_schema_concepts.html#collect
Customer not responding.
https://github.com/ManageIQ/manageiq-automation_engine/pull/112