Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Chinese

Pagetitle
Joget Workflow 开放源码
Joget Workflow 开放源码

Thai

Pagetitle
Joget Workflow Open Source
Joget Workflow Open Source


Table of Contents

Source Code Repository


Chinese

源代码库

Thai

แหล่งเก็บ Source Code. 


The source code for Joget is available at https://github.com/jogetworkflow/jw-community.

Chinese

Joget Workflow的源代码可从  https://github.com/jogetworkflow/jw-community获取

Thai

The source code สำหรับ Joget Workflow อยู่ที่ https://github.com/jogetworkflow/jw-community.

You can view the source code for other versions by using the branch switcher in GitHub.

Chinese

您可以使用GitHub中的分支切换器查看其他版本的源代码。

Thai

คุณสามารถดู source code เวอร์ชั่นอื่นๆได้ที่ GitHub.

Build Source Code


Chinese

构建源代码

Thai

สร้าง Source Code


1. Install Prerequisites

  • Install JDK 8. Please make sure "JAVA_HOME" is set.
  • Install MySQL 5 or above.
  • Install Apache Maven 2.2.1 or above. Please make sure "mvn" command is able to be executed from the command line.
  • Install Subversion Client or Github Client.
Chinese

1.安装先决条件

  • 安装JDK 8。请确保设置“JAVA_HOME”。
  • 安装MySQL 5或更高版本
  • 安装Apache Maven  2.2.1或更高版本。请确保可以从命令行执行“mvn”命令。
  • 安装  Subversion ClientGithub Client

2. Install 3rd Party Libraries

  • Download and unzip the file install-libraries.zip.
  • In the extracted folder, run "install_linux.sh" for Linux and Mac or run "install_win.bat" for Window.
Chinese

2.安装第三方库

  • 下载并解压缩文件  install-libraries.zip
  • 在提取的文件夹中,对于Linux和Mac运行“install_linux.sh”,或者为Window运行“install_win.bat”。

3. Obtain Source

Chinese

3.获取来源

At the time of writing this guide, the latest 6.0 version is 6.0-SNAPSHOT. You can obtain the source code by following methods:

Chinese

在撰写本指南时,最新的6.0版本是6.0-SNAPSHOT-bate2。您可以通过以下方法获取源代码:

Direct Download

You will find a download button on the right sidebar.

Chinese

直接下载

您将在右侧边栏找到一个下载按钮。

Checkout using Subversion Client

Chinese

使用Subversion Client进行获取

Code Block
languagebash
svn co https://github.com/jogetworkflow/jw-community/branches/7.0-SNAPSHOT

...

        Refer to Set Up Git to initialize your Github account. 

Chinese

使用Github客户端 克隆

        请参阅  设置Git以初始化您的Github帐户。 

Code Block
languagebash
git clone https://github.com/jogetworkflow/jw-community.git --branch 7.0-SNAPSHOT

...

  • Joget contains unit test cases that requires access to a running MySQL database.
  • To configure a datasource, navigate to your user home:
    • e.g. In Windows: cd C:\Users\myuser\ 
    • e.g. In Ubuntu: cd /home/myuser/
    • e.g. In Mac: cd /Users/myuser/
  • Download wflow.zip and extract the file in your user home.
  • You will find the files "app_datasource.properties" and "app_datasource-default.properties" in the "wflow" folder.
  • Configure "app_datasource-default.properties" with your MySQL server username and password.


    Chinese

    4.配置测试用例的数据源

    • Joget Workflow包含需要访问正在运行的MySQL数据库的单元测试用例。
    • 要配置数据源,请转到您的用户家:
      • 例如在Windows中:cd C:\ Users \ myuser \ 
      • 例如在Ubuntu中:cd / home / myuser /
      • 例如在Mac中:cd  / Users / myuser /
    • 下载  wflow.zip并提取文件。
    • 您将在“wflow”文件夹中找到“app_datasource.properties”和“app_datasource-default.properties”文件。
    • 使用您的MySQL服务器用户名和密码配置“app_datasource-default.properties”。

    Code Block
    workflowDriver=com.mysql.jdbc.Driver
    workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8
    workflowUser=root
    profileName=
    workflowPassword=root
  • Create a "jwdb" database in your MySQL Server with the "jwdb-empty.sql" file located in the source code directory "wflow-install/src/main/resources/data/".

    Chinese

    在您的MySQL服务器中创建一个“jwdb”数据库,位于源代码目录“wflow-install / src / main / resources / data /”中的“jwdb-empty.sql”文件。

5. Build Project

Chinese

5.构建项目

  • Navigate into the wflow-app directory.
  • Build the wflow-app directory using Apache Maven commands.

    Chinese
    • 浏览到wflow-app目录。
    • 使用Apache Maven命令构建wflow-app目录。

    Code Block
    languagebash
    cd wflow-app
    mvn clean install




...