I want to show the current task schedule png by rest-api,like activiti

like this png.

can anybody tell me how to do it ?

You can deploy a process with an image and then use this api to retrieve the image when you want it.