-
1. Re: How to create a new group in KIE workbench?
krisverlaenen Sep 4, 2013 2:29 PM (in response to madmaz)1 of 1 people found this helpfulThe CR2 release doesn't allow you to do this through the UI yet, this will be available in the next release I believe.
You can however use a command line interface to configure various properties of your repository, including group management:
https://github.com/droolsjbpm/kie-wb-distributions/tree/master/kie-config-cli
-
2. Re: Re: How to create a new group in KIE workbench?
madmaz Sep 5, 2013 5:53 AM (in response to krisverlaenen)Ok, I got this tool (I found an already compiled package kie-config-cli-6.0.0-20130902.162337-319-dist.zip) and ran it on my server. Then I used create-org-unit (which replaces create-group), create-repo and add-repo-org-unit commands.
After that, I ran list-org-units:
Currently available Organizational Units:
Organizational Unit mycustomer
owner: admin
roles: []
repositories:
Repository mycustomer-playground
scheme: git
uri: git://mycustomer-playground
environment: {username=, scheme=git, security:roles=[], password=}
repository roles: []
Finally, I went to the KIE Workbench but, I still had only the demo organization-unit/group. Also after restarting the server.
As starting point, it seem strange to me that demo isn't present in the above list.
I'm sure the location of the parent folder of .niogit is right (in fact the list-repo returns jbpm-playground, uf-playground, mycustomer-playground).
Can you help me? Which are the right steps?
Thanks.
-
3. Re: Re: Re: How to create a new group in KIE workbench?
swiderski.maciej Sep 5, 2013 1:47 PM (in response to madmaz)I just tried the exact same version of the kie-config-cli and here is complete log of the commands I used:
./kie-config-cli.sh ******************************************************** ************* Welcome to Kie config CLI **************** ******************************************************** >>Please specify location of the parent folder of .niogit /development-servers/jboss-eap-6.1/bin >>Please enter command (type help to see available commands): help Result: ****************** KIE CLI Help ************************ ******************************************************** Available commands: exit - quits this command line tool help - prints this message list-repo - list available repositories list-org-units - list available organizational units list-deployment - list available deployments create-org-unit - creates new organizational unit remove-org-unit - remove existing organizational unit add-deployment - add new deployment unit remove-deployment - remove existing deployment create-repo - creates new git repository remove-repo - remove existing repository from config only add-repo-org-unit - add repository to the organizational unit remove-repo-org-unit - remove repository from the organizational unit add-role-repo - add role(s) to repository remove-role-repo - remove role(s) from repository add-role-org-unit - add role(s) to organizational unit remove-role-org-unit - remove role(s) from organizational unit add-role-project - add role(s) to project remove-role-project - remove role(s) from project >>>>>>>>>>>>>>>>>>>>>>>>>>> >>Please enter command (type help to see available commands): list-org-units Result: Currently available Organizational Units: Organizational Unit demo owner: demo@jbpm.org roles: [] repositories: Repository jbpm-playground scheme: git uri: git://jbpm-playground environment: {username=guvnorngtestuser1, scheme=git, security:roles=[], origin=https://github.com/guvnorngtestuser1/jbpm-console-ng-playground-kjar.git, password=****} repository roles: [] Repository uf-playground scheme: git uri: git://uf-playground environment: {username=guvnorngtestuser1, scheme=git, security:roles=[], origin=https://github.com/guvnorngtestuser1/guvnorng-playground.git, password=****} repository roles: [] >>>>>>>>>>>>>>>>>>>>>>>>>>> >>Please enter command (type help to see available commands): create-org-unit >>Organizational Unit name:CompanyOU >>Organizational Unit owner:owner@jbpm.org >>Repositories (comma separated list): Result: Organizational Unit CompanyOU successfully created >>>>>>>>>>>>>>>>>>>>>>>>>>> >>Please enter command (type help to see available commands): list-org-units Result: Currently available Organizational Units: Organizational Unit demo owner: demo@jbpm.org roles: [] repositories: Repository jbpm-playground scheme: git uri: git://jbpm-playground environment: {username=guvnorngtestuser1, scheme=git, security:roles=[], origin=https://github.com/guvnorngtestuser1/jbpm-console-ng-playground-kjar.git, password=test1234} repository roles: [] Repository uf-playground scheme: git uri: git://uf-playground environment: {username=guvnorngtestuser1, scheme=git, security:roles=[], origin=https://github.com/guvnorngtestuser1/guvnorng-playground.git, password=test1234} repository roles: [] Organizational Unit CompanyOU owner: owner@jbpm.org roles: [] repositories: >>>>>>>>>>>>>>>>>>>>>>>>>>> >>Please enter command (type help to see available commands): exit
with that then started app server where it the console/kie-wb was deployed and the groups is available when cloning or creating new repositories. As you can see on the very beginning of the log I specified the location of JBOSS_HOME/bin where is .niogit located. This is in fact the only thing that might be mssing if the group/OU is not available. After adding the group via cli app server must be restarted as the application does not monitor external changes to the configuration.
btw, what OS and java version do you use?
HTH
-
4. Re: Re: Re: Re: How to create a new group in KIE workbench?
madmaz Sep 6, 2013 6:25 AM (in response to swiderski.maciej)Tried the same but still cannot see "demo" organization unit
Any other suggestion/thing to check?
My environment:
jBPM 6.0.0.CR2 (so I have jboss-as-7.1.1.Final)
Linux 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
Thanks.
********************************************************
************* Welcome to Kie config CLI ****************
********************************************************
>>Please specify location of the parent folder of .niogit
/home/technology/jbpm-porting-to-6/jboss-as-7.1.1.Final/bin
>>Please enter command (type help to see available commands):
list-org-units
Result:
Currently available Organizational Units:
>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
5. Re: How to create a new group in KIE workbench?
swiderski.maciej Sep 6, 2013 6:32 AM (in response to madmaz)when you invoke the cli too against .niogit in as7 bin directly, has the application been started already? Asking because the group will be created first time application is started. Otherwise it would be empty. Another thing you could try to remove the .niogit and let the cli tool create one for you. Then add the group and check if it adds properly. Next start application on jboss and you should see both your group and demo in there.
HTH
-
6. Re: How to create a new group in KIE workbench?
madmaz Sep 6, 2013 6:01 PM (in response to swiderski.maciej)I tried as you suggested but still no success.
Moreover, just as note, I cannot see the demo group but instead I can see uf-playground and jbpm-playground. But if I use remove-repo on this two (I don't need them...) and restart the server, the jbpm-console doesn't start anymore because there are some stacktrace starting from org.kie.workbench.backend.AppSetup.assertPlayground(...). I also tried setting properties org.jbpm.console.demo and org.kie.wb.demo to false but no difference.
-
7. Re: How to create a new group in KIE workbench?
madmaz Oct 31, 2013 2:59 PM (in response to madmaz)Hi,
now with JBPM 6 CR5 the group and repository management works: in fact I am able to create a new group and to remove from the KIE workbench, great!
But now the problem is that if I remove the jbpm-playground and uf-playground, when I restart the JBoss server, the start fails due to an exception on assertPlayground() in org.kie.workbench.backend.AppSetup.
Any solution?
Thanks.
Cheers.
-
8. Re: How to create a new group in KIE workbench?
swiderski.maciej Nov 1, 2013 6:57 AM (in response to madmaz)I assume you would like to have KIE workbench without the demo repositories, if that's the case you should add following system property to the server startup and that will ensue no demo repos will be loaded:
-Dorg.kie.demo=false
HTH