Commit 0b96534d authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

patches/DCWorkflow.py: add an universal method to get a dict of workflow scripts value.

parent d54de962
......@@ -809,6 +809,11 @@ def DCWorkflowDefinition_getWorklistIdList(self):
return self.worklists.objectIds()
return []
def DCWorkflowDefinition_getScriptValueList(self):
if self.scripts is not None:
return self.scripts
return {}
def StateDefinition_getDestinationIdList(self):
return self.transitions
......@@ -825,6 +830,7 @@ DCWorkflowDefinition.getVariableValueList = DCWorkflowDefinition_getVariableValu
DCWorkflowDefinition.getStateValueList = DCWorkflowDefinition_getStateValueList
DCWorkflowDefinition.getTransitionValueList = DCWorkflowDefinition_getTransitionValueList
DCWorkflowDefinition.getWorklistValueList = DCWorkflowDefinition_getWorklistValueList
DCWorkflowDefinition.getScriptValueList = DCWorkflowDefinition_getScriptValueList
DCWorkflowDefinition.getVariableIdList = DCWorkflowDefinition_getVariableIdList
DCWorkflowDefinition.getStateIdList = DCWorkflowDefinition_getStateIdList
DCWorkflowDefinition.getTransitionIdList = DCWorkflowDefinition_getTransitionIdList
......
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