Commit 7752b816 authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: Intergraded isWorkflow5MethodSupported function.

parent f3ca30fe
...@@ -139,6 +139,13 @@ class Workflow(XMLObject): ...@@ -139,6 +139,13 @@ class Workflow(XMLObject):
transition_url=transition_url, transition_url=transition_url,
state=state) state=state)
def isWorkflow5MethodSupported(self, document, transition):
state = document.getCategoryStateValue()
if state is None:
return 0
if transition in state.getDestinationValueList():
return 1
return 0
########### ###########
## 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