Commit 3541da9a authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: add universal methods.

parent 8e42ad98
...@@ -514,6 +514,17 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): ...@@ -514,6 +514,17 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
else: else:
return state return state
def getVariableList(self):
return self.objectValues(portal_type="Variable")
def getStateList(self):
return self.objectValues(portal_type="State")
def getWorkflowList(self):
return self.objectValues(portal_type="Worklist")
def getTransitionList(self):
return self.objectValues(portal_type="Transition")
########### ###########
## Graph ## ## Graph ##
########### ###########
......
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