jbpm console uses graph plugin to deal with this, you can find its code base here. This should give you some ideas how you could incorporate it into your application.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM Development at Community