Commit 7ae9efc7 authored by Julien Muchembled's avatar Julien Muchembled

BusinessProcess: fix isCompleted & getLatest(Partially)CompletedTradeStateList methods

parent 2a16967d
...@@ -478,7 +478,7 @@ class BusinessProcess(Path, XMLObject): ...@@ -478,7 +478,7 @@ class BusinessProcess(Path, XMLObject):
Applied Rule which implicitely defines a simulation subtree Applied Rule which implicitely defines a simulation subtree
""" """
result = set() result = set()
for state in self.getCompletedTradeStateValue(explanation): for state in self.getCompletedTradeStateList(explanation):
for business_link in state.getPredecessorRelatedValueList(): for business_link in state.getPredecessorRelatedValueList():
if not self.isBusinessLinkCompleted(explanation, business_link): if not self.isBusinessLinkCompleted(explanation, business_link):
result.add(state) result.add(state)
...@@ -494,7 +494,7 @@ class BusinessProcess(Path, XMLObject): ...@@ -494,7 +494,7 @@ class BusinessProcess(Path, XMLObject):
Applied Rule which implicitely defines a simulation subtree Applied Rule which implicitely defines a simulation subtree
""" """
result = set() result = set()
for state in self.getCompletedTradeStateValue(explanation): for state in self.getCompletedTradeStateList(explanation):
for business_link in state.getPredecessorRelatedValueList(): for business_link in state.getPredecessorRelatedValueList():
if not self.isBusinessLinkPartiallyCompleted(explanation, business_link): if not self.isBusinessLinkPartiallyCompleted(explanation, business_link):
result.add(state) result.add(state)
...@@ -814,7 +814,7 @@ class BusinessProcess(Path, XMLObject): ...@@ -814,7 +814,7 @@ class BusinessProcess(Path, XMLObject):
Applied Rule which implicitely defines a simulation subtree Applied Rule which implicitely defines a simulation subtree
""" """
for state in self.getTradeStateList(): for state in self.getTradeStateList():
if not state.isTradeStateCompleted(explanation): if not self.isTradeStateCompleted(explanation, state):
return False return False
return True return True
......
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