-
1. Re: How to set Token name?
cahimoped Jul 4, 2007 4:30 AM (in response to j.wozniakowski)You can always get the root token. So it doesn't need a name.
For all other tokens you may create the name can be set in the constructor.
I think a setname method would be pretty useless... -
2. Re: How to set Token name?
j.wozniakowski Jul 4, 2007 6:22 AM (in response to j.wozniakowski)As I said - I need to set root token name. This is a business requirement, not only for developers use.
-
3. Re: How to set Token name?
kukeltje Jul 4, 2007 7:11 AM (in response to j.wozniakowski)Use the businesskey for this... this is new in jbpm 3.2 and introduced for relating processes to external data. You can then retrieve the processinstance based on this key and easily get the root token
-
4. Re: How to set Token name?
j.wozniakowski Jul 13, 2007 12:35 PM (in response to j.wozniakowski)Thank you. This works and solves my problem. :-)
-
5. Re: How to set Token name?
maxrunner Feb 18, 2009 2:24 PM (in response to j.wozniakowski)HI! did you solve your problem of setting the name property in the token class/table? im asking because i cant set a token parent without setting a name, otherwise it will give me an error having to do with the children Map which uses the name field to build the Map with the children.
regards,