Thank you for your guidance! The sample code is very useful.
Using this code ,I can get the image showing the current status of a workflow.
But when I made my sample project, a new problem arose.
I must create the process's png file manually by tools such as eclipse plugins.
Is there any code showing the way to create a image automatically
maybe,
transfer a bpmn file to a png file
or get the image from a server?