Closed Marco-Sulla closed 4 years ago
A codelet is loaded by the class loader exactly once. Since each task will have different parameters, these cannot be passed to the constructor, but rather must be passed to the execute method.
Task parameters and stored as lists throughout the system. You are free to change the lists to maps in your codelet implementation as you wish.
The population of these two parameters are demanded to the
execute()
method, sinceYAWL
passes these parameters to it. I think thatYAWL
should pass these parameters to the constructor instead, andexecute()
will be a method with only theinData
parameter. IMHO it's much more standard this way.Furthermore, I think it's more simple if
inParams
andoutParams
will be aMap<String, YParameter>
, so you have no to cycle over the parameters every time one needs to get a parameter by its name.