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

workflows

parent aafbc287
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
<name>ISACTIVE</name>
<title>Active</title>
<contentType>BOOLEAN</contentType>
<dropDownProcess>%aditoprj%/entity/WorkflowDefinition_entity/entityfields/isactive/dropDownProcess.js</dropDownProcess>
</entityField>
<entityField>
<name>FILEUPLOAD</name>
......@@ -51,6 +52,7 @@
<entityField>
<name>VERSION</name>
<title>Version</title>
<state>READONLY</state>
</entityField>
<entityField>
<name>NAME</name>
......@@ -73,6 +75,7 @@
<isFilterable v="true" />
<contentProcess>%aditoprj%/entity/WorkflowDefinition_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/WorkflowDefinition_entity/recordcontainers/jdito/onInsert.js</onInsert>
<onUpdate>%aditoprj%/entity/WorkflowDefinition_entity/recordcontainers/jdito/onUpdate.js</onUpdate>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
......
......@@ -3,5 +3,5 @@ import("system.result");
import("system.neon");
import("system.workflow");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET && vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
result.string(workflow.getProcessDiagram(vars.get("$field.UID")));
\ No newline at end of file
import("system.translate");
import("system.result");
result.object([
["true", translate.text("Yes")],
["false", translate.text("No")]
]);
\ No newline at end of file
import("system.vars");
import("system.workflow");
if (vars.get("$local.changed"))
var rowdata = vars.get("$local.rowdata");
......@@ -31,6 +31,7 @@
<recordContainers>
<jDitoRecordContainer>
<name>jdito</name>
<contentProcess>%aditoprj%/entity/WorkflowInstance_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
......
import("system.vars");
import("system.workflow");
var workflowDefId = vars.get("$param.WorkflowDefinitionId_param");
var loadConfig = workflow.createConfigForLoadingProcessInstances()
.processDefinitionId(workflowDefId);
var wfInstances = workflow.getProcessInstances(loadConfig);
\ No newline at end of file
......@@ -14,5 +14,20 @@
<subtitleField>CATEGORY</subtitleField>
<entityField>#ENTITY</entityField>
</cardViewTemplate>
<genericViewTemplate>
<name>Generic</name>
<showDrawer v="true" />
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>9ae7bada-afb2-48d4-9aa0-b2bd5bd17379</name>
<entityField>ISACTIVE</entityField>
</entityFieldLink>
<entityFieldLink>
<name>d31118d7-fc96-4126-80f5-4336da434170</name>
<entityField>VERSION</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
</children>
</neonView>
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