User development,

A new message was posted in the thread "Generate Image from ProcessDefinition":

http://community.jboss.org/message/530879#530879

Author  : henry donnell
Profile : http://community.jboss.org/people/bestage

Message:
--------------------------------------------------------------
Like Ronald answered, there is no ready solution to do that.
 
But actually you can achieve what you want... Here is the concept:
* for any Process Definition you can get the iImage resource name by calling   
String 
*http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/ProcessDefinition.html#getImageResourceName%28%29()...*
* now you can use RepositoryService and say 
*http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/RepositoryService.html#getResourceAsStream%28java.lang.String,%20java.lang.String%29*(java.lang.String
 deploymentId,                      java.lang.String resourceName) that will 
return you the InputStream of the process image
* now you can use RepositoryService again and say 
*http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/RepositoryService.html#getActivityCoordinates%28java.lang.String,%20java.lang.String%29*(java.lang.String
 processDefinitionId,                         java.lang.String activityName) 
* and now presuming you know the name of the current activity in your given 
process instance (= execution) you can draw that rectangle on the image... How 
exactly this can be done, can't say for now, but that shouldn't be impossible.
 
By the way this is not my original idea, this was mentioned somewhere on the 
this forum. Also maybe have a look at the GWT console, the guys have solved the 
same problem already.

--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/530879#530879


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to