 
     result = Serverboards.Action.trigger_wait(action, params, "rule/#{uuid}")
 
+    Logger.info("Executed action #{inspect action}", rule_uuid: uuid)
+
     result = if Enum.count(result)==1 and Map.has_key?(result, :result) do
       result[:result] else result end
 

      } = step, state) do

    eval_res = ExEval.eval(condition, [state])
    if step["debug"] do
      Logger.debug("Check condition #{inspect condition}: #{inspect eval_res}.", state: state, rule_id: uuid)
    end
    case eval_res do
      {:ok, condition_result} ->
        if condition_result do

  def handle_cast({:trigger, params}, state) do
    if state.running == false do # already runing, no retriggers
      {:ok, trigger_type} = Serverboards.Utils.map_get(state.rule.rule, ["when", "trigger"])
      Logger.info("Triggered #{inspect {state.rule.name, trigger_type}}", params: params, rule_uuid: state.rule.uuid)
      when_id = Map.get(state.rule.rule["when"], "id", "A")
      params = Map.merge( state.rule.rule["when"]["params"] || %{}, params )
      uuid = state.rule.uuid
