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):
def DCWorkflowDefinition_getVariableValueList(self):
if self.variables is not None:
return self.variables
return None
return {}
def DCWorkflowDefinition_getVariableIdList(self):
if self.variables is not None:
return self.variables.objectIds()
return None
return []
def DCWorkflowDefinition_getStateValueList(self):
if self.states is not None:
return self.states
return None
return {}
def DCWorkflowDefinition_getStateIdList(self):
if self.states is not None:
return self.states.objectIds()
return None
return []
def DCWorkflowDefinition_getTransitionValueList(self):
if self.transitions is not None:
return self.transitions
else:
return None
return {}
def DCWorkflowDefinition_getTransitionIdList(self):
if self.transitions is not None:
return self.transitions.objectIds()
return None
return []
def DCWorkflowDefinition_getWorklistValueList(self):
if self.worklists is not None:
return self.worklists
return None
return {}
def DCWorkflowDefinition_getWorklistIdList(self):
if self.worklists is not None:
return self.worklists.objectIds()
return None
return []
DCWorkflowDefinition.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