Commit 35733288 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

call solver_workflow's method only when it is possible, because we don't want...

call solver_workflow's method only when it is possible, because we don't want to use solver_workflow for automatic solvers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c1f63ca
......@@ -88,4 +88,6 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject):
simulation_movement.setMappedProperty(property_id, value)
simulation_movement.expand(activate_kw=activate_kw)
# Finish solving
if self.getPortalObject().portal_workflow.isTransitionPossible(
solver, 'succeed'):
self.succeed()
......@@ -96,4 +96,6 @@ class AdoptSolver(SolverMixin, ConfigurableMixin, XMLObject):
movement.setProperty(solved_property,
simulation_movement.getProperty(solved_property))
# Finish solving
if self.getPortalObject().portal_workflow.isTransitionPossible(
solver, 'succeed'):
self.succeed()
......@@ -111,4 +111,6 @@ class QuantitySplitSolver(SolverMixin, ConfigurableMixin, XMLObject):
# new_movement.expand(activate_kw=activate_kw)
# Finish solving
if self.getPortalObject().portal_workflow.isTransitionPossible(
solver, 'succeed'):
self.succeed()
......@@ -137,4 +137,6 @@ class TradeModelSolver(AcceptSolver):
simulation_movement.getProperty(solved_property))
# Finish solving
if self.getPortalObject().portal_workflow.isTransitionPossible(
solver, 'succeed'):
self.succeed()
......@@ -89,4 +89,6 @@ class UnifySolver(AcceptSolver):
simulation_movement.setMappedProperty(property_id, value)
simulation_movement.expand(activate_kw=activate_kw)
# Finish solving
if self.getPortalObject().portal_workflow.isTransitionPossible(
solver, 'succeed'):
self.succeed()
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