ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google

Mail Archive Home | jawe List | May 2005 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [jawe] Global variable

Gennaro Leo wrote:
> Hi,
> i tried to generate a flow with jaWE but i had a problem: i declare some
> variables (float, boolean) at package level but when the a subflow is
> instantiated they loose their value (i.e. the float variable returns to
> 0). How can I solve this problem?
> I'm new to jaWE and Shark

This is a common mis-interpretation of the specification. Process data
declarations at the package level do not have a "global scope", they are
not "shared" between processes. Declaring something at the package level
is nothing more than a shortcut for declaring the item in every process
within the package.

If you want to communicate data with your subflow, use the process'

 - Michael

<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.