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

Support deliveryless instances.

parent 64493b65
......@@ -63,14 +63,14 @@ else:\n
return \'Looking for a free partition\'\n
else:\n
delivery = context.getCausalityValue()\n
delivery_state = delivery.getSimulationState()\n
delivery_state = delivery is not None and delivery.getSimulationState() or None\n
if state == "start_requested":\n
if delivery_state == "started":\n
if delivery_state is not None and delivery_state == "started":\n
return \'Started\'\n
else:\n
return \'Start in progress\' \n
elif state == "stop_requested":\n
if delivery_state == "delivered" or (delivery.getPortalType() == \'Sale Order\' and delivery.getSimulationState() == \'confirmed\'):\n
if delivery_state is not None and delivery_state == "delivered" or (delivery.getPortalType() == \'Sale Order\' and delivery.getSimulationState() == \'confirmed\'):\n
return \'Stopped\'\n
else:\n
return \'Stop in progress\'\n
......
852
\ No newline at end of file
853
\ No newline at end of file
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