def actionThread_exec (params):
t = threading.currentThread()
memory_service = getattr(t, "mem_serv", None)
print "Action "+actionName+" started with params "+params
# action init
val = False
# action init
while (getattr(t, "do_run", True) and (not val)):
#print "Action "+actionName+" "+params+" exec..."
# action exec
val = get_condition(memory_service, params)
# action exec
time.sleep(0.25)
print "Action "+actionName+" "+params+" terminated"
# action end
# action end
memory_service.raiseEvent("PNP_action_result_"+actionName,"success");
评论列表
文章目录