This content has been marked as final.
Show 1 reply
-
1. Re: View BPMN using the API
horvie Jan 13, 2015 2:45 AM (in response to pedalshoe)You must get a hold on ProcessAssetDesc type of your process (In example: RuntimeDataService.getProcesses()). When you have that, you call ProcessAssetDesc.getEncodedProcessSource(), that return Baste64 encoded String of BPMN xml, so you should decode it.
Snippet:
ProcessAssetDesc process = RuntimeDataService.getProcesses().iterator().next();
byte[] source = Base64.decodeBase64(process.getEncodedProcessSource());
String xml = new String(source, "UTF-8");