Skip to content

Commit

Permalink
more model work
Browse files Browse the repository at this point in the history
rref #5357

ref #64
  • Loading branch information
evrenesat committed Aug 15, 2016
1 parent 24644b2 commit 1abfa7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zengine/models/workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1abfa7e

Please sign in to comment.