Skip to content
Snippets Groups Projects
Commit a4ecffda authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Workflow Modeler Alias

(cherry picked from commit bacc85093bea0f54d632bea9863baac73036fc79)
parent a6362298
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,15 @@ WorkflowUtils.engineIsEnabled = function () ...@@ -93,7 +93,15 @@ WorkflowUtils.engineIsEnabled = function ()
*/ */
WorkflowUtils.getModelerUrl = function (pModelId, pIsEditor) WorkflowUtils.getModelerUrl = function (pModelId, pIsEditor)
{ {
var modelerUrl = project.getPreferenceValue("custom.workflow.modelerUrl", "").replace(/\/$/, ""); var modelerAliasName = project.getInstanceConfigValue("workflowModelerAlias", "") || "WorkflowModeler";
if (!modelerAliasName)
return "";
var modelerProperties = project.getAliasModel(modelerAliasName)[project.ALIAS_PROPERTIES];
if (!modelerProperties.modelerUrl)
return "";
var modelerUrl = modelerProperties.modelerUrl.replace(/\/$/, "");
if (pModelId) if (pModelId)
{ {
if (pIsEditor) if (pIsEditor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment