From 1abfa7e73d43e0b9ff3717fbb2b8c3d323a6d74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Evren=20Esat=20=C3=96zkan?= Date: Mon, 15 Aug 2016 18:01:20 +0300 Subject: [PATCH] more model work rref #5357 ref zetaops/zengine#64 --- zengine/models/workflow_manager.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zengine/models/workflow_manager.py b/zengine/models/workflow_manager.py index 9a22baf1..fbdee606 100644 --- a/zengine/models/workflow_manager.py +++ b/zengine/models/workflow_manager.py @@ -15,6 +15,12 @@ RoleModel = get_object_from_path(settings.ROLE_MODEL) AbstractRoleModel = get_object_from_path(settings.ABSTRACT_ROLE_MODEL) +class DiagramXML(Model): + """ + Diagram XML versions + """ + body = field.String("XML content", index=False) + name = field.String("Name") class BPMNWorkflow(Model): """ @@ -23,9 +29,9 @@ class BPMNWorkflow(Model): It's also can hold any WF specific setting and configuration. """ + xml = DiagramXML() name = field.String("Name") description = field.String("Description") - xml = field.String("XML", index=False) show_in_menu = field.Boolean(default=False) requires_object = field.Boolean(default=False) object_field_name = field.String("Object field name") @@ -56,6 +62,7 @@ class WFInstance(Model): """ wf = BPMNWorkflow() role = RoleModel() + diagram_version = field.DateTime() wf_object = field.String("Subject ID") start_date = field.DateTime("Start time") last_activation = field.DateTime("Last activation")