Konfigurations-dateien in WexFlow

Es gibt einige Konfigurationsdateien in WexFlow

WexFlow Server

Verzeichnissstruktur

Programm Verzeichnis normalerweise C:\Program Files\Wexflow

Dazu werden die Verzeichnisse:

  • Wexflow
  • WexflowTesting

angelegt. Der Ordner Wexflow ist der eigentliche Konfigurationsordner bis auf die Datei Wexflow.Server.exe.config bei .NET im Installationsverzeichnis Der Ordner Wexflow Testing beinhaltet alle Task und Workflow für Testen.

Wexflow.Server.exe.config

für die .NET Version, liegt im Installationsverzeichnis der Anwendung

Server-Mail Setting – Logging

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  </configSections>
  <appSettings>
    <add key="WexflowSettingsFile" value="C:\Wexflow\Wexflow.xml" />
    <add key="DateTimeFormat" value="dd-MM-yyyy HH:mm:ss" />
    <add key="Smtp.Host" value="server" />
    <add key="Smtp.Port" value="25" />
    <add key="Smtp.EnableSsl" value="true" />
    <add key="Smtp.User" value="User" />
    <add key="Smtp.Password" value="Passwort" />
    <add key="Smtp.From" value="from" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
  </appSettings>
  <log4net>
    <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
      <file value="Wexflow.log" />
      <encoding value="utf-8" />
      <appendToFile value="true" />
      <rollingStyle value="Date" />
      <datePattern value="yyyyMMdd" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date %5level [%thread] - %message%newline" />
      </layout>
    </appender>
    <root>
      <level value="DEBUG" />
      <appender-ref ref="RollingFile" />
    </root>
  </log4net>
  ...
  ...

appsettings.json für die .NET Core Version

{
  "WexflowSettingsFile": "e:\\Wexflow-dotnet-core\\Wexflow.xml",
  "WexflowServicePort": 8000,
  "DateTimeFormat": "dd-MM-yyyy HH:mm:ss", /* Date and time format in the backend. */
  "Smtp.Host": "smtp.gmail.com",
  "Smtp.Port": 587,
  "Smtp.EnableSsl": true,
  "Smtp.User": "user",
  "Smtp.Password": "password",
  "Smtp.From": "user",
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
     "Default": "Verbose",
     "System": "Information",
     "Microsoft": "Information"
    }
  }
}

Wexflow.xml

<?xml version="1.0" encoding="UTF-8" ?>
<Wexflow>
  <Setting name="tempFolder" value="C:\Wexflow\Temp" />
  <Setting name="tasksFolder" value="C:\Wexflow\Tasks" />
  <Setting name="approvalFolder" value="C:\Wexflow\Approval" />
  <Setting name="xsd" value="C:\Wexflow\Workflow.xsd" />
  <Setting name="tasksNamesFile" value="C:\Wexflow\TasksNames.json" />
  <Setting name="tasksSettingsFile" value="C:\Wexflow\TasksSettings.json" />
  <!-- LiteDB or MongoDB or RavenDB or CosmosDB -->
  <Setting name="dbType" value="LiteDB" />
  <!--LiteDB-->
  <Setting name="connectionString" value="Filename=C:\Wexflow\Database\Wexflow.db; Mode=Exclusive" />
  <!--MongoDB. SslProtocols: None|Ssl2|Ssl3|Tls|Default|Tls11|Tls12-->
  <!--<Setting name="connectionString" value="DatabaseName=wexflow;MongoUrl=mongodb://localhost:27017;EnabledSslProtocols=false;SslProtocols=None" />-->
  <!--RavenDB-->
  <!--<Setting name="connectionString" value="DatabaseName=wexflow;RavenUrl=http://localhost:8080" />-->
  <!--CosmosDB-->
  <!--<Setting name="connectionString" value="DatabaseName=wexflow;EndpointUrl=URL;AuthorizationKey=KEY" />-->
  <Setting name="globalVariablesFile" value="C:\Wexflow\GlobalVariables.xml" />
  <Setting name="maxRetries" value="5" />
  <Setting name="retryTimeout" value="700" />
</Wexflow>

GlobalVariables.xml

<?xml version="1.0" encoding="utf-8" ?>
<GlobalVariables>
  <Variable name="wexflowTesting" value="E:\Wexflow-dotnet-core\Testing" />
  <Variable name="fileName1" value="file1.txt" />
  <Variable name="fileName2" value="file2.txt" />
  <Variable name="fileName3" value="file3.txt" />
  <Variable name="file1" value="E:\Wexflow-dotnet-core\Testing\file1.txt" />
  <Variable name="file2" value="E:\Wexflow-dotnet-core\Testing\file2.txt" />
  <Variable name="file3" value="E:\Wexflow-dotnet-core\Testing\file3.txt" />
</GlobalVariables>

Log4jnet

<?xml version="1.0" encoding="utf-8" ?>
<log4net>
  <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
    <file value="Wexflow.log"/>
    <encoding value="utf-8"/>
    <appendToFile value="true"/>
    <rollingStyle value="Date"/>
    <datePattern value="yyyyMMdd"/>
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date %5level [%thread] - %message%newline"/>
    </layout>
  </appender>
  <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date %5level [%thread] - %message%newline"/>
    </layout>
  </appender>
  <root>
    <level value="INFO"/>
    <appender-ref ref="ConsoleAppender"/>
    <appender-ref ref="RollingFile"/>
  </root>
</log4net>

WexFlow Backend

setting.js

Settings = {
    Uri: "http://localhost:8000/wexflow"
};

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.