Using GIT to export knowledge repository on Drools KIE workbench

Scenario: we have developed assets (process models, rules, java codes, scripts, etc) on Computer1. The Workbench maintains these assets as repository. After development, we wish to deploy the developed project to another Computer2. This requires migrating the developed repository from Computer1 to Computer2.

Traditionally we copy the workbench environment to the target. This requires copying tens of gigabytes chunks, and thus suboptimal. Since Workbench uses Git to manage the versions, it should also support export/import through Git commands. Here is how to do it.


Computer1 & Computer2 have Git and KIE Workbench installed.


1. On Computer1, use git to get local copy of repository.

      – Create a local folder

– $ git clone git://localhost:{port}/{repo}.git

    – After the command completes, we get a local copy of the repository

2. Transfer the repository to Computer2, e.g., using file copying.

3. On Computer2, create organization and repository with the same name in Workbench.

– Create a local working repository using Git

– Create a new folder

– $ git init

– $ remote add origin ssh://admin@localhost:{port}/{repo}. This command will ask for the password “admin”.

– We can see a empty repository is pulled from the Workbench server.

4. Use the transferred files to cover the local repository, e.g., add sources, rules, workflows.

5. Push it back to Workbench using Git.

– $ git add .

– $ git commit -m “migrated from Computer2”

– $ git push origin master

6. In the workbench, refresh to see the imported repository.

That’s it.

Using this method, we have reduced Dev-Op deployment from days to minutes.

Sponsored Post Learn from the experts: Create a successful blog with our brand new courseThe Blog is excited to announce our newest offering: a course just for beginning bloggers where you’ll learn everything you need to know about blogging from the most trusted experts in the industry. We have helped millions of blogs get up and running, we know what works, and we want you to to know everything we know. This course provides all the fundamental skills and inspiration you need to get your blog started, an interactive community forum, and content updated annually.


  1. 对于同样的压力,认为「压力有害健康」的人有更高的死亡率,而认为「压力有益」的人则比无压力人群还要健康。后者产生的激素反映会展示出勇气。
  2. 压力反应本身产生的激素,会促使人寻求社交接触,而社交接触会缓解压力。也就是说,压力机制本身会导致压力的减轻。当然,关键在于是否能够获得社交接触来倾诉压力感觉。
  3. 在感受到压力时,去关爱别人的人,几乎没有在健康方面受到压力的影响。