第7章 スタンドアロン Business Central の実行

Business Central スタンドアロン JAR ファイルを使用して、Red Hat JBoss EAP 等のアプリケーションサーバーにデプロイせずに Business Central を実行できます。

注記

Red Hat は、Red Hat Enterprise Linux にインストールした場合は限りこのインストールタイプをサポートします。

手順

  1. Red Hat カスタマーポータルの Software Downloads ページに移動し (ログインが必要)、ドロップダウンオプションから製品およびバージョンを選択します。

    • 製品: Red Hat Process Automation Manager
    • バージョン: 7.0
  2. Red Hat Process Automation Manager 7.0 Business Central Standalone (rhpam-7.0.0-business-central-standalone.jar) をダウンロードします。
  3. ディレクトリーを作成し、rhpam-7.0.0-business-central-standalone.jar ファイルをこのディレクトリーに移動します。
  4. ターミナルウィンドウで、スタンドアロン JAR ファイルを含むディレクトリーに移動します。
  5. application-users.properties ファイルを作成します。管理ユーザーを含み、この Business Central インスタンスが Process Server のコントローラーの場合はコントローラーユーザーを含みます。以下は例となります。

    rhpamAdmin=password1
    controllerUser=controllerUser1234
  6. application-roles.properties ファイルを作成し、application-users.properties ファイルに含まれるユーザーにロールを割り当てます。以下に例を示します。

    rhpamAdmin=admin
    controllerUser=kie-server
  7. 以下の内容で application-config.yaml 設定ファイルを作成します。<APPLICATION_USERS>application-users.properties ファイルへのパスで、<APPLICATION_ROLES>application-roles.properties ファイルへのパスです。

    swarm:
      security:
        security-domains:
          other:
            classic-authentication:
              login-modules:
                myloginmodule:
                  code: org.kie.security.jaas.KieLoginModule
                  flag: optional
                  module: deployment.kie-wb-webapp.war
      management:
        security-realms:
          ApplicationRealm:
            local-authentication:
              default-user: local
              allowed-users: local
              skip-group-loading: true
            properties-authentication:
              path: <APPLICATION_USERS>
              plain-text: true
            properties-authorization:
              path: <APPLICATION_ROLES>
    datasource:
      management:
        wildfly:
          admin: admin
  8. 以下のコマンドを入力します。

    java -jar rhpam-7.0.0-business-central-standalone.jar -s application-config.yaml

    また、このコマンドに -D<property>=<value> パラメーターを追加して、Business Central でサポートされる任意のプロパティーを設定することもできます。以下は例になります。

    java -jar rhpam-7.0.0-business-central-standalone.jar -s application-config.yaml -D<property>=<value> -D<property>=<value>

    詳細は「サポートされるプロパティ」を参照してください。

7.1. サポートされるプロパティ

スタンドアロン Business Central をインストールする場合は、以下のコマンドで、本セクションに列記するプロパティーを使用できます。

java -jar rhpam-7.0.0-business-central-standalone.jar -s application-config.yaml -D<property>=<value> -D<property>=<value>

このコマンドで、<property> が以下に列記するプロパティーのいずれかで、<value> がそのプロパティーに割り当てる値です。

  • org.uberfire.nio.git.dir: Process Server Git ディレクトリーの場所。
  • org.uberfire.nio.git.dirname: Process Server Git ディレクトリーの名前。デフォルト値: .niogit
  • org.uberfire.nio.git.daemon.enabled: Git デーモンを有効または無効にします。デフォルト値: true
  • org.uberfire.nio.git.daemon.host: Git デーモンが有効な場合は、このプロパティーをローカルホストの識別子として使用します。デフォルト値: localhost
  • org.uberfire.nio.git.daemon.port: Git デーモンが有効な場合は、このプロパティーをポート番号として使用します。デフォルト値: 9418
  • org.uberfire.nio.git.ssh.enabled: Git デーモンを有効または無効にします。デフォルト値: true
  • org.uberfire.nio.git.ssh.host: SSH Git デーモンが有効な場合は、このプロパティーをローカルホスト識別子として使用します。デフォルト値: localhost
  • org.uberfire.nio.git.SSH.port: SSH デーモンが有効な場合は、このプロパティーをポート番号として使用します。デフォルト値: 8001
  • org.uberfire.nio.git.ssh.cert.dir: ローカルの証明書が保存される .security ディレクトリーの場所。デフォルト: 作業ディレクトリー。
  • org.uberfire.nio.git.ssh.passphrase: SCP スタイルの URL (例: git@github.com:user/repository.git) を持つ Git リポジトリーのクローンを作成する場合に、オペレーティングシステムの公開キーストアにアクセスするためのパスフレーズ。
  • org.uberfire.nio.git.ssh.algorithm: SSH で使用されるアルゴリズム。デフォルト値: DSA

    注記

    RSA、または DSA 以外のアルゴリズムを使う場合は、Bouncy Castle JCE ライブラリーを使用するようにアプリケーションサーバーを設定します。

  • org.uberfire.metadata.index.dir: Lucene の .index ディレクトリーが保存される場所。デフォルト: 作業ディレクトリー。
  • org.uberfire.ldap.regex.role_mapper: LDAP プリンシパル名をアプリケーションのロール名にマッピングするのに使用する regex パターン。プリンシパルの値をロール名に一致させるときにアプリケーションのロール名で置き換えられるため、変数ロールはパターンの一部でなければならない点に注意してください。デフォルト: 不使用
  • org.uberfire.sys.repo.monitor.disabled: 設定モニターを無効にします。無効にした場合の影響を正しく理解していない場合は、無効にしないでください。デフォルト値: false
  • org.uberfire.secure.key: パスワードの暗号化を使用したパスワード。デフォルト値: org.uberfire.admin
  • org.uberfire.secure.alg: パスワードの暗号化で使用する暗号化アルゴリズム。デフォルト値: PBEWithMD5AndDES
  • org.uberfire.domain: uberfire が使用するセキュリティードメイン名。デフォルト値: ApplicationRealm
  • org.guvnor.m2repo.dir: Maven リポジトリーディレクトリーが保存される場所。デフォルト値: <working-directory>/repositories/kie.
  • org.guvnor.project.gav.check.disabled: グループ ID、アーティファクト ID、およびバージョン (GAV) のチェックが無効になります。デフォルト値: false
  • org.kie.example: GitHub 外部へのデモアプリケーションのクローン作成を有効にします。
  • org.kie.build.disable-project-explorer: Project Explorer で選択したプロジェクトの自動ビルドを無効にします。デフォルト値: false
  • org.kie.verification.disable-dtable-realtime-verification: デシジョンテーブルのリアルタイム確認および検証を無効にします。デフォルト値: false
  • org.kie.server.controller: Kie サーバーコントローラーとの接続に使用される URL (例: ws://localhost:8080/business-central/websocket/controller)。
  • org.kie.server.user: コントローラーから Process Server ノードに接続する際に使用するユーザー名。このプロパティーは、この Business Central システムをコントローラーとして使用する場合に限り必要になります。
  • org.kie.server.pwd: コントローラーから Process Server ノードに接続する際に使用するパスワード。このプロパティー、この Business Central システムをコントローラーとして使用する場合に限り必要になります。