Commit b24a4bbb authored by Łukasz Nowak's avatar Łukasz Nowak

- implement isCompleted for BPM related Simulation Movement


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27969 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82562e51
......@@ -188,6 +188,14 @@ class SimulationMovement(Movement):
# nothing better to return.
return self.getSimulationState()
security.declareProtected(Permissions.AccessContentsInformation,
'isCompleted')
def isCompleted(self):
"""Zope publisher docstring. Documentation in ISimulationMovement"""
# only available in BPM, so fail totally in case of working without BPM
return self.getSimulationState() in self.getCausalityValue(
portal_type='Business Path').getCompletedStateList()
security.declareProtected( Permissions.AccessContentsInformation,
'isAccountable')
def isAccountable(self):
......
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