diff --git a/entity/WorkflowDefinition_entity/WorkflowDefinition_entity.aod b/entity/WorkflowDefinition_entity/WorkflowDefinition_entity.aod index e890ebab03fa80f68a318fe8a09c61469387077e..0151f2bee19abad65888332ad53b601b84ff629d 100644 --- a/entity/WorkflowDefinition_entity/WorkflowDefinition_entity.aod +++ b/entity/WorkflowDefinition_entity/WorkflowDefinition_entity.aod @@ -164,6 +164,12 @@ <name>Context_param</name> <expose v="true" /> </entityParameter> + <entityActionField> + <name>downloadXML</name> + <title>Download Process</title> + <onActionProcess>%aditoprj%/entity/WorkflowDefinition_entity/entityfields/downloadxml/onActionProcess.js</onActionProcess> + <iconId>VAADIN:DOWNLOAD</iconId> + </entityActionField> </entityFields> <recordContainers> <jDitoRecordContainer> diff --git a/entity/WorkflowDefinition_entity/entityfields/downloadxml/onActionProcess.js b/entity/WorkflowDefinition_entity/entityfields/downloadxml/onActionProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..db07ada11090e2708a24c6bf63e8f6083aa3e2e7 --- /dev/null +++ b/entity/WorkflowDefinition_entity/entityfields/downloadxml/onActionProcess.js @@ -0,0 +1,5 @@ +import("system.vars"); +import("system.workflow"); +import("system.neon"); + +neon.download(workflow.getProcessXML(vars.get("$field.UID")), vars.get("$field.NAME") + ".xml"); \ No newline at end of file