[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread kukeltje
it is read from the processdefinition xml file itself. Which task is active is based on the name. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257241#4257241 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4257241

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
But the information is exposed nowhere via an API? Can I get a copy of the process definition xml via the API? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257245#4257245 Reply to the post :

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
Hello Ronald, thank you for your answer. Could you point me to the file where the reading of the co-ordinates to show the current process diagram is done? Thanks, Sebastian View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257302#4257302 Reply to the post :

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
Okay, I overlooked getActivityCoordinates() in RepositoryService. But how to retrieve the process image from the engine? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257304#4257304 Reply to the post :

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread kukeltje
getResourceAsStream (like you normally would loading an image from a classpath ;-)) om the RepositoryService. You just have to know the name of the image as it was deployed in the process archive. View the original post :

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
| repositoryService.getResourceAsStream(deploymentId, resourceName) | And I have to know the deploymentId. Is there a way to determine to which deployment a process belongs? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257323#4257323 Reply to the post

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
I mean: a process definition belongs View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257324#4257324 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4257324 ___ jboss-user mailing

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread kukeltje
Have a look at the sourcecode of the console or the jbpm testcase on how this is done (have no time to do that myself) things like 'grep -R getResourceAsStream |grep -v target |grep -v svn' work amazingly well if you do not have an ide at hand) I also found

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
Thanks for the hint Ronald, I managed to succeed without looking how the console deals with it. They only thing missing was getting the image from the deployment in a comfortable and general way. So your hint helps a lot. I am now doing the image manipulation myself. 1. I get the process image

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
I just wrote a long post thanking you for the hint, Ronald and explaining how I I succeded without looking deeper into the console code. Then I pushed submit and it disappeared. :( View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257467#4257467 Reply to the

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread kukeltje
What the 3 console does (and I in my JSF console) is draw the rectangles in DHTML, so the image stays the same. Nice thing about that is that you can also display other details of a node on e.g. mouse-over etc. I'm not sure how the GWT console for 4 does this btw, might be like you do it or

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-28 Thread sebastian.s
I noticed this because the console retrieves the image via the REST-interface and there is just the possibility to get the original image. I think both methods have advantages and disadvantages. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4257471#4257471

[jboss-user] [jBPM Users] - Re: Showing the process diagram in my own application

2009-09-27 Thread sebastian.s
I feel a bit lost in the source code of the console but I had already managed to find the section for showing the diagram and there was a method call similiar to: | info = getActiveTaskNodeInfo(); | x = info.getX(); | y = info.getY(); | So the co-ordinates of the task nodes placed in