Re: Activity scope variables

Monique Maker <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hello Gianfranco,

You can change the value of some variable during the process execution if it is appropriate in your case. I think that you cannot define variables for activity or set different value for a process-level variable for each activity in process definition design time.

However, it seems that you need to send some parameters to a tool via JavaToolAgent. In this case you can do something else: you are not forced to use only WRD as actual parameters - supply for the corresponding parameter a hardcoded value, instead of WRD:
 - Define your tool, lets say with the following parameters: param1, param2, myVariableConstant;
 - Define appropriate workflow application to call this tool;
 - At each call to the corresponding workflow application supply someting like:
  = activity1: WRD1, WRD2, "I want it in this way";
  = activity1: WRD3, WRD4, "I want it in that way";
  = activity1: WRD5, WRD6, "I want it in some other way";

Unfortunately, this solution has some limitations:
 - you cannot use the corresponding paramer in "out" mode;
 - you can supply only simple values - string, integer, date, ... There is no way to supply some user-defined Java objects.

Regards,
Monique

Gianfranco Boccalon wrote:
> Is it possible to have "Activity" scoped variables, accessible by Java 
> code ?
> I need to associate some parameters to some activities, but I dont find 
> how to in the documentation.
> I can define the parameters as "process parameters", and use them 
> through the process context, but i'd like to use the same name for these 
> parameters with different values for different activities.
> 
> Some suggestions ?
> 
> Regards
> Gianfranco Boccalon
> 
> 
>
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.