Commit 20844693 authored by Ulrich Wohlfeil's avatar Ulrich Wohlfeil 💬
Browse files

Rename WfState to State

parent 396afa3c
...@@ -5,7 +5,7 @@ from ecmind_blue_client import Job ...@@ -5,7 +5,7 @@ from ecmind_blue_client import Job
from ecmind_blue_client import Client from ecmind_blue_client import Client
from XmlElement import XmlElement from XmlElement import XmlElement
class WfState(Enum): class State(Enum):
INIT = 1 INIT = 1
RUNNING = 2 RUNNING = 2
SUSPENDED = 4 SUSPENDED = 4
...@@ -58,7 +58,7 @@ def admin_get_process_list(client: Client, organisation_id: str, workflow_id: st ...@@ -58,7 +58,7 @@ def admin_get_process_list(client: Client, organisation_id: str, workflow_id: st
p['@Id']: { p['@Id']: {
'name': p['@Name'], 'name': p['@Name'],
'subject': p['@Subject'], 'subject': p['@Subject'],
'state': WfState(int(p['@State'])), 'state': State(int(p['@State'])),
'suspended_activity': p['@SuspendedActivity'], 'suspended_activity': p['@SuspendedActivity'],
'creation':{ 'creation':{
'user_id': p['Creation']['@UserId'], 'user_id': p['Creation']['@UserId'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment