-
1. Re: How to add custom node?
koen.aers Jan 5, 2008 7:43 AM (in response to anas)The graphical editor cannot handle custom nodes that are produced in this way. If you want the nodes to show up in the editor, you should use the plain vanilla node type and configure them with an action. There are a number of forum threads that talk about this way of doing it.
Regards,
Koen -
2. Re: How to add custom node?
anas Jan 5, 2008 8:01 AM (in response to anas)so is there any other way to add a custom node??
or another way to configure it??
and can you plz send me any link that talks about plain vanilla node type??
and how can i use it??
big thanks,
Anas -
3. Re: How to add custom node?
kukeltje Jan 5, 2008 3:53 PM (in response to anas)9.3.7 in the docs and look in the source for specific testcases and look in the wiki also
-
4. Re: How to add custom node?
tom.baeyens Jan 8, 2008 3:15 AM (in response to anas)with plain vanilla node type, koen referred to the 'node', which is also a node-type in jPDL. it's used to provide an action that implements the node behaviour.
-
5. Re: How to add custom node?
anas Jan 8, 2008 7:41 AM (in response to anas)I appreciate your effort for answering me,,,
I checked the the node type in 9.3.7,,, but my case is that i want to add a custom attributes to the class node itself,, in other words,, node class contains id as long,, and i want to add a type of node that contain myId as int,, and get its value from the processdefinition.xml,, i.e:
<process-definition name="simple">
<custom-node myId="5">
...... </custom-node>
</process-definition>
is there any solution,, or i have to rebuild the jpdl in order to do that?? -
6. Re: How to add custom node?
tom.baeyens Jan 8, 2008 8:42 AM (in response to anas)in jbpm.3 there is a read method in the node so that the node implementation also can parse custom attributes.
i don't know whether all things are configurable enough to get it going without recompilation. that probably is the case, but i'm not sure. see the jPDL node type implementations for examples on how to implement that extra node parsing.
we currently working towards jpdl 4 where this node pluggability is fully worked out from designer to xml over node implementation to persistence.