Skip to content
Snippets Groups Projects
Commit 463c6d49 authored by S.Listl's avatar S.Listl
Browse files

1055715 - Action for opening the flowable modeler

parent f4fae9f8
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,11 @@
<name>tableActions</name>
<children>
<entityActionField>
<name>importWorkflow</name>
<isMenuAction v="false" />
<isObjectAction v="false" />
<name>openModeler</name>
<title>Open modeler</title>
<onActionProcess>%aditoprj%/entity/WorkflowDefinition_entity/entityfields/tableactions/children/openmodeler/onActionProcess.js</onActionProcess>
<iconId>VAADIN:EXTERNAL_LINK</iconId>
<stateProcess>%aditoprj%/entity/WorkflowDefinition_entity/entityfields/tableactions/children/openmodeler/stateProcess.js</stateProcess>
</entityActionField>
</children>
</entityActionGroup>
......
import("Workflow_lib");
import("system.neon");
var modelerUrl = WorkflowUtils.getModelerUrl();
if (modelerUrl)
neon.openUrl(modelerUrl, true);
\ No newline at end of file
import("system.result");
import("Workflow_lib");
import("system.neon");
result.string(WorkflowUtils.getModelerUrl() ? neon.COMPONENTSTATE_EDITABLE : neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
......@@ -11,6 +11,7 @@
<children>
<tableViewTemplate>
<name>Table</name>
<favoriteActionGroup1>tableActions</favoriteActionGroup1>
<entityField>#ENTITY</entityField>
<linkedColumns>
<element>NAME</element>
......
......@@ -92,6 +92,11 @@
<name>duplicates.dataBlockSize</name>
<property v="5000" />
</customIntegerProperty>
<customStringProperty>
<name>workflow.modelerUrl</name>
<description></description>
<property>http://localhost:8080/flowable-modeler/#/processes</property>
</customStringProperty>
</customProperties>
<customConfigProperties>
<customBooleanProperty>
......
......@@ -87,6 +87,16 @@ WorkflowUtils.engineIsEnabled = function ()
return String(project.getInstanceConfigValue("workflowEngineEnabled", "false")) == "true";
}
/**
* returns the url of the workflow modeler configured in the project preferences
*
* @return {String} the url of the workflow modeler
*/
WorkflowUtils.getModelerUrl = function ()
{
return project.getPreferenceValue("custom.workflow.modelerUrl", "");
}
/**
* obsolete, use signals
*/
......
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