-
1. Re: how I get a node's type in processevent
swiderski.maciej Sep 30, 2013 1:03 AM (in response to wangtrash)in the ProcessEventListener implementation you will get various events (depending on the method you would like to override) and from there you can get the node instance:
event.getNodeInstance().getNode()
then you will need to check the actual instance of the Node to get its type.
HTH
-
2. Re: how I get a node's type in processevent
wangtrash Oct 7, 2013 9:31 PM (in response to swiderski.maciej)thanks for your reply. but in node interface, I have only node's name or id. actually, I want to know the type name of node, for example, event node, service task node, start node, end node, gateway, subprocess node, etc. how can I get that?
-
3. Re: how I get a node's type in processevent
swiderski.maciej Oct 8, 2013 1:25 AM (in response to wangtrash)object instances returned from event.getNodeInstance().getNode() should be examined of what type they are like class. For example StartNode start = (StartNode)event.getNodeInstance().getNode() would be used to get the start node and you would usually check it with instanceof
HTH
-
4. Re: how I get a node's type in processevent
wangtrash Oct 8, 2013 7:11 AM (in response to swiderski.maciej)thank you for the help, it is useful.