-
1. Re: Is it possible to get UUID of a process opened in designer from drools-guvnor url
tk120404 Jun 24, 2013 4:21 AM (in response to prathap.vs)In your custom page, u can access it thru window.parent.top.location.hash.replace('#AssetEditorPlace:','');
ie. var uuid = window.parent.top.location.hash.replace('#AssetEditorPlace:','');
enjoy
-
2. Re: Is it possible to get UUID of a process opened in designer from drools-guvnor url
tsurdilovic Jun 24, 2013 9:01 AM (in response to prathap.vs)The above solution probably works, but it is dependent on Guvnor 5.x. If you switch to jBPM 6 I'm pretty sure you wont be able to carry it over. You could ask Designer itself what the UUID is that it has currently open which is compatible across versions (2.4 and the upcoming 6.0):
- locate the frame that Designer is opened in and ask for ORYX.UUID which contains that value, for example: window.frames[4].ORYX.UUID
Designer has a very good public JS api from which you can get a lot more than just the UUID (you can get the process json, svg, bpmn2, manipulate parts of the process canvas, etc etc).
HTH