Commit 54e59631 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

patches/WorkflowTool.py: make DC workflow universal methods return correct data structure.

parent 36c5f8de
...@@ -102,43 +102,43 @@ def method_getReference(self): ...@@ -102,43 +102,43 @@ def method_getReference(self):
def DCWorkflowDefinition_getVariableValueList(self): def DCWorkflowDefinition_getVariableValueList(self):
if self.variables is not None: if self.variables is not None:
return self.variables return self.variables
return None return {}
def DCWorkflowDefinition_getVariableIdList(self): def DCWorkflowDefinition_getVariableIdList(self):
if self.variables is not None: if self.variables is not None:
return self.variables.objectIds() return self.variables.objectIds()
return None return []
def DCWorkflowDefinition_getStateValueList(self): def DCWorkflowDefinition_getStateValueList(self):
if self.states is not None: if self.states is not None:
return self.states return self.states
return None return {}
def DCWorkflowDefinition_getStateIdList(self): def DCWorkflowDefinition_getStateIdList(self):
if self.states is not None: if self.states is not None:
return self.states.objectIds() return self.states.objectIds()
return None return []
def DCWorkflowDefinition_getTransitionValueList(self): def DCWorkflowDefinition_getTransitionValueList(self):
if self.transitions is not None: if self.transitions is not None:
return self.transitions return self.transitions
else: else:
return None return {}
def DCWorkflowDefinition_getTransitionIdList(self): def DCWorkflowDefinition_getTransitionIdList(self):
if self.transitions is not None: if self.transitions is not None:
return self.transitions.objectIds() return self.transitions.objectIds()
return None return []
def DCWorkflowDefinition_getWorklistValueList(self): def DCWorkflowDefinition_getWorklistValueList(self):
if self.worklists is not None: if self.worklists is not None:
return self.worklists return self.worklists
return None return {}
def DCWorkflowDefinition_getWorklistIdList(self): def DCWorkflowDefinition_getWorklistIdList(self):
if self.worklists is not None: if self.worklists is not None:
return self.worklists.objectIds() return self.worklists.objectIds()
return None return []
DCWorkflowDefinition.getReference = method_getReference DCWorkflowDefinition.getReference = method_getReference
TransitionDefinition.getReference = method_getReference TransitionDefinition.getReference = method_getReference
......
Markdown is supported
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