Exemplo n.º 1
0
        /// <inheritdoc />
        public WorkflowDebuggerEvent(IExecutionEntity execution, Exception exception = null)
        {
            this.Execution = execution;
            this.Exception = exception;

            if (execution != null)
            {
                ExecutionTree eTree = ExecutionTreeUtil.BuildExecutionTree(execution);
                ExecutionTrace = eTree.ToString();
            }
            if (exception != null)
            {
                LogLevel = LogLevel.Error;
            }
            else
            {
                LogLevel = LogLevel.Information;
            }
        }