Bug 1010219

Summary: Option to start business central with example setup
Product: [Retired] JBoss BPMS Platform 6 Reporter: Maciej Swiderski <mswiders>
Component: Business CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Livora <tlivora>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: etirelli, jsniezek, mswiders, rzhang
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:12:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maciej Swiderski 2013-09-20 09:53:52 UTC
Description of problem:
As an alternative setup to the playground repositories that are loaded on startup allow to create an example configuration that provides quick and easy start to work on new projects. 
An example configuration consists of:
1. "example" organizational unit (group)
2. "example-repository" that belongs to "example" ou
3. empty "example-project" that belongs to "example-repository"

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Maciej Swiderski 2013-09-20 10:08:08 UTC
new configuration option has been introduced that allows to start business central with example configuration. To enable it following system property needs to be set:
-Dorg.kie.example=true

please note that this property and org.kie.demo are exclusive meaning only on of them can be set to true, so to have example setup active demo needs to be switched off:

-Dorg.kie.demo=false
-Dorg.kie.example=true

Commits in jbpm-console
master
https://github.com/droolsjbpm/jbpm-console-ng/commit/c414f22923e9e7e734ab8acf800a58373bace0b0
6.0.x
https://github.com/droolsjbpm/jbpm-console-ng/commit/69046c488c6bbd14d0324a4fa03732182ceb210a


Commits in kie-wb
master
https://github.com/droolsjbpm/kie-wb-distributions/commit/f112e4a4468f79c02102245c0105f4204d52a5ae

6.0.x
https://github.com/droolsjbpm/kie-wb-distributions/commit/e6b2a81ab7c61a9cd01b22b5838ba17739149f78

Comment 3 Maciej Swiderski 2013-09-20 10:09:43 UTC
Ryan, could you please enable it for the product as it was requested?

Comment 4 Ryan Zhang 2013-09-20 11:36:53 UTC
Thanks, Maciej. 
Done.

Comment 5 Joe Sniezek 2013-09-27 14:50:43 UTC
Hi, the idea of a built-in sample project sounds good, and we have recommendations for the names used in the project:

Instead of:
example
example_repository
example_project

Use:
example
repository1
project1

Comment 6 Maciej Swiderski 2013-10-03 10:15:41 UTC
taking it back to apply new names for repository and project

Comment 10 Tomas Livora 2013-12-02 12:29:29 UTC
Maciej, in your comments above you have mentioned that org.kie.example property needs to be set true to create an example configuration. But this property is enabled by default in the standalone.xml. Is it an intended behaviour? Would not it be better if there were no repositories by default?

Comment 11 Maciej Swiderski 2013-12-02 12:36:14 UTC
Tomas,

I believe this is the way product team decided to configure it by default - to enable example repository for product while disabling those coming from github.

Ryan, might be set person to confirm that.

Comment 12 Tomas Livora 2013-12-02 13:47:29 UTC
Ryan, could you confirm that?

Comment 14 Tomas Livora 2013-12-04 08:33:48 UTC
Verified on BPMS 6.0.0.ER5