Commit 6700a5f3 authored by Klaus Wölfel's avatar Klaus Wölfel

data analysis alarm: only create activity if no other running activity

parent 54c47e5e
...@@ -22,5 +22,6 @@ portal = context.getPortalObject() ...@@ -22,5 +22,6 @@ portal = context.getPortalObject()
for data_analysis in portal.portal_catalog(portal_type = "Data Analysis", for data_analysis in portal.portal_catalog(portal_type = "Data Analysis",
simulation_state = "started"): simulation_state = "started"):
if not data_analysis.hasActivity():
data_analysis.activate(serialization_tag=str(data_analysis.getUid()))\ data_analysis.activate(serialization_tag=str(data_analysis.getUid()))\
.DataAnalysis_executeDataOperation() .DataAnalysis_executeDataOperation()
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