diff --git a/javasource/processqueue/queuehandler/ObjectQueueExecutor.java b/javasource/processqueue/queuehandler/ObjectQueueExecutor.java index 2b01717..199fb87 100644 --- a/javasource/processqueue/queuehandler/ObjectQueueExecutor.java +++ b/javasource/processqueue/queuehandler/ObjectQueueExecutor.java @@ -223,15 +223,15 @@ public synchronized void run() this._state = State.finishedFollowup; } } catch (Exception e) { - _logNode.info("Error during commit from queue", e); - setErrormessageAndCommit(this.context, this.action, "An unknown error occured. Please contact your system administrator.", e, LogExecutionStatus.FailedExecuted, ActionStatus.Cancelled); + _logNode.error("Error during commit from queue", e); + setErrormessageAndCommit(Core.createSystemContext(), this.action, "An unknown error occured. Please contact your system administrator.", e, LogExecutionStatus.FailedExecuted, ActionStatus.Cancelled); } } } catch (Exception e) { this._state = State.failed; // Microflow is being rollbacked _logNode.error("Error during committing errormessage from queue", e); - setErrormessageAndCommit(this.context, this.action, "An unknown error occured. Please contact your system administrator.", e, LogExecutionStatus.FailedExecuted, ActionStatus.Cancelled); + setErrormessageAndCommit(Core.createSystemContext(), this.action, "An unknown error occured. Please contact your system administrator.", e, LogExecutionStatus.FailedExecuted, ActionStatus.Cancelled); } finally { this._state = State.threadFinished; @@ -309,4 +309,4 @@ public long getActionNr() { public String getMicroflowName() { return this.microflowName; } -} \ No newline at end of file +}