Skip to content

Commit

Permalink
Activiti Cycle: Hotfix for making the Signavio SVG API URL configurab…
Browse files Browse the repository at this point in the history
…le through the database
  • Loading branch information
falko.menge committed May 31, 2011
1 parent 2aa1dc7 commit 77cd403
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.activiti.cycle.RepositoryArtifact;
import org.activiti.cycle.impl.connector.signavio.SignavioConnectorConfiguration;
import org.activiti.cycle.impl.connector.signavio.SignavioConnectorInterface;
import org.activiti.cycle.service.CycleServiceFactory;

public class SignavioSvgApiBuilder {

Expand Down Expand Up @@ -76,7 +77,7 @@ public String buildScript() {
if (template == null)
return "";
// set properties
template = template.replaceAll("SIGNAVIO_EDITOR_SRC", SVGAPI_URL_LOCAL);
template = template.replaceAll("SIGNAVIO_EDITOR_SRC", CycleServiceFactory.getConfigurationService().getConfigurationValue("SignavioSvgApiBuilder", "svgApiUrl", SVGAPI_URL_LOCAL));
template = template.replaceAll("SIGNAVIO_MODEL_URL", connectorConfiguration.getModelUrl(artifact.getNodeId()));
template = template.replaceAll("SIGNAVIO_SERVER_URL", connectorConfiguration.getSignavioUrl());
template = template.replaceAll("SIGNAVIO_ZOOM", zoomLevel);
Expand Down Expand Up @@ -157,4 +158,4 @@ public SignavioSvgApiBuilder highlightNodes(List<SignavioSvgHighlight> nodes) {
return this;
}

}
}

0 comments on commit 77cd403

Please sign in to comment.