Commit 7ca84732 authored by Aurel's avatar Aurel

do not retrieve causality uid if it was already provided


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5ecb2e9
......@@ -99,10 +99,11 @@ class BPMBuilder(Alarm):
self.callBeforeBuildingScript()
# Select movements
if input_movement_list is None:
business_path_value_list = self.getRelatedBusinessPathValueList()
if len(business_path_value_list) > 0:
# use only Business Path related movements
select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list]
if not select_method_dict.has_key('causality_uid'):
business_path_value_list = self.getRelatedBusinessPathValueList()
if len(business_path_value_list) > 0:
# use only Business Path related movements
select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list]
# do search
input_movement_value_list = self.searchMovementList(
delivery_relative_url_list=existing_delivery_list,
......
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