Hi Roxy1987,
Can you make use of JBPM Console's REST Service for this?
from the REST list of jbpm-console-server at /gwt-console-server/rs/server/resources/jbpm
they provides
/gwt-console-server/rs/process/instance/{id}/delete
and
/gwt-console-server/rs/process/instance/{id}/end/{result}
haven't used them personally, but the jbpm-console that comes with the installer have a delete feature that use one of that REST service
Regards,
Thomas Setiabudi