Commit bd60faab authored by wenjie.zheng's avatar wenjie.zheng

patches/DCWorkflow.py: patche functions of compatibilities.

parent 87e989cc
......@@ -1043,7 +1043,18 @@ def DCWorkflowDefinition_showAsXML(self, root=None):
return etree.tostring(root, encoding='utf-8',
xml_declaration=True, pretty_print=True)
def DCWorkflowDefinition_getSourceValue(self):
return self.states[self.initial_state]
def DCWorkflowDefinition_setStateVariable(self, name):
self.variables.setStateVar(name)
def DCWorkflowDefinition_addTransition(self, name):
self.transitions.addTransition(name)
DCWorkflowDefinition.addTransition = DCWorkflowDefinition_addTransition
DCWorkflowDefinition.getReference = method_getReference
DCWorkflowDefinition.getSourceValue = DCWorkflowDefinition_getSourceValue
DCWorkflowDefinition.notifyWorkflowMethod = DCWorkflowDefinition_notifyWorkflowMethod
DCWorkflowDefinition.notifyBefore = DCWorkflowDefinition_notifyBefore
DCWorkflowDefinition.notifySuccess = DCWorkflowDefinition_notifySuccess
......@@ -1056,6 +1067,7 @@ DCWorkflowDefinition.getVariableIdList = DCWorkflowDefinition_getVariableIdList
DCWorkflowDefinition.getStateIdList = DCWorkflowDefinition_getStateIdList
DCWorkflowDefinition.getTransitionIdList = DCWorkflowDefinition_getTransitionIdList
DCWorkflowDefinition.getWorklistIdList = DCWorkflowDefinition_getWorklistIdList
DCWorkflowDefinition.setStateVariable = DCWorkflowDefinition_setStateVariable
DCWorkflowDefinition.showAsXML = DCWorkflowDefinition_showAsXML
DCWorkflowDefinition.showDict = DCWorkflowDefinition_showDict
DCWorkflowDefinition.propertyIds = DCWorkflowDefinition_propertyIds
......
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