-
1. Re: Associate custom objects with Nodes
kukeltje May 10, 2006 4:51 PM (in response to cavalera)Sebastian,
Maybe it's that I'm tired (it's 22:48 after a long day, but I do not fully grasp what you mean. From what I understand you want a page with input elements that come from both the process and another system? And you want that customized per task?
That is not possible with 3.1 without implementing your own framework. In 3.2 things will be possible to some extend.
Ronald -
2. Re: Associate custom objects with Nodes
kukeltje May 10, 2006 4:52 PM (in response to cavalera)But...
What you could do is ad an action to the task, read the db in there and create transient task variables. Those will be displayed (I hope) but I do not know how to update them.
Ronald -
3. Re: Associate custom objects with Nodes
cavalera May 11, 2006 8:55 AM (in response to cavalera)Thank for replaying kukeltje.
e.g. when you do a Swing JTree you should create instances of class the DefaultMuteableTreeNode.
You associate a custom objetc to each DefaultMuteableTreeNode and if an event occurs on the tree ( supposing it's a node selection event ) by having the selected DefaultMuteableTreeNode you call the node.getUserObject() and that way get your custom Object.
Well... my jbpm app have several task nodes in its flow but each task node can be "different" for MY app. I will do know it's a task node when the execution point reaches a task node, but that's not enough for my app since I have to know what task node "subtype" is. That's why I wanted to know if there's some way to associate a custom object to a task node like the DefaultTreeNode does.
Thanks
Regards,
Sebastian. -
4. Re: Associate custom objects with Nodes
aguizar May 11, 2006 12:43 PM (in response to cavalera)How about using a simple Map<TaskNode, YourCustomClass>? If you need your custom objects to be persistent, you can create a subclass of module instance, put the map there and create the necessary Hibernate mappings.
-
5. Re: Associate custom objects with Nodes
cavalera May 12, 2006 9:56 AM (in response to cavalera)Thanks for the reply alex.
That should work but I got a question.
Since I didn't find any documentation about ModuleInstance in users guide I tried to deduce it b myself by taking a look directly to the code.
Are ModuleInstance subclasses some kind of "services helper classes" ? I mean some point for providing your extension app... since from simple helper class to some facade with a lot of classes bellow it ?
Regards,
Sebastian