cancel
Showing results for 
Search instead for 
Did you mean: 

SvgApi is not working when localhost is not available

kesavkolla
Champ in-the-making
Champ in-the-making
My application server is running on remove host.  I'm accessing the cycle from my local laptop.  When I click on RawXML BPMN etc.. everything works.  When I click on SvgApi nothing comes up.

I've digged into detail and found when ever I click on SvgApi the URL for signavio-svg.js is actually coming as localhost:8080.

Here is more detail request response.

Request:  https://wzxdcc002.cdbt.wcdc.kp.org:8443/activiti-cycle/proxy/activiti-rest-endpoint/content?connecto...


Response:


<html><head><link href="../../res/css/activiti-core.css" type="text/css" rel="stylesheet" /></head><body><div id="model"><script type="text/javascript" src="http://localhost:8080/activiti-modeler/api/signavio-svg.js"></script><script type="text/plain">{   url: "http://wzxdcc002.cdbt.wcdc.kp.org:8080/activiti-modeler/p/model/root-directory%3BEasyBugFilingProces...",   server: "http://wzxdcc002.cdbt.wcdc.kp.org:8080/activiti-modeler/", zoom: 100,              }</script></div></body></html>


Since the URL for signavio-svg.js is localhost it's not able to load it.  I looked into source and found SVGAPI_URL_LOCAL is hardcoded to localhost:8080 in SignavioSvgApiBuilder.java.

Looking forward to fix it.
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Hi,

This is indeed an issue. Can you file a Jira for this and add it to the component "activiti cycle"? (http://jira.codehaus.org/browse/ACT)

bernd_ruecker
Champ in-the-making
Champ in-the-making
Hi kesavkolla.

Thanks for reporting this. Actually we had a have some problems with the SvgApi, so currently it is most likely that we remove it again, since it is not used in Activiti overall it is too much effort in Cycle, and just for highlighting some tasks we can use the PNG-API like Activiti probe, which even works in all browsers. But filing an issue would be best to document it, indeed.

What is your use case for the SvgApi? Currently we work together with Signavio for a more powerful integration, but that will work with the commercial Signavio only 😞

Cheers
Bernd

kesavkolla
Champ in-the-making
Champ in-the-making
In my case the process diagram is very big.  I've almost 100 tasks in it.  When we show the PNG diagram of process instance  it's really tough to see where the current task is running.  There is no way of zooming to currently running task.  With SVG we can use JavaScript to scroll/zomm to the current running task.  I'd really appreciate if the SVG option is still available.

Is it possible to get the BPEL from REST API?  At least I can use modeler to display the BPEL.

bernd_ruecker
Champ in-the-making
Champ in-the-making
Öhm, which BPEL do you mean? There is no BPEL involved 😉

Yeah, with big diagrams, thats a good argument. I would recommend to switch to the commercial Signavio, they have a really powerful API for this, and it can be used within Cycle/Activiti as well.

Cheers
Bernd