Skip to content

Commit

Permalink
JBPM-5772: Improve jbpm-installer to support case mgmt +
Browse files Browse the repository at this point in the history
auto-provisioning + demo
  • Loading branch information
krisv committed Apr 14, 2017
1 parent c385fdb commit 39ad73c
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 31 deletions.
2 changes: 1 addition & 1 deletion jbpm-installer/src/main/resources/auth/roles.properties
@@ -1,5 +1,5 @@
admin=admin,analyst,kiemgmt,rest-all,kie-server
krisv=admin,analyst,rest-all,kie-server
krisv=admin,analyst,user,rest-all,kie-server
john=analyst,Accounting,PM
mary=analyst,HR
sales-rep=analyst,sales
Expand Down
15 changes: 14 additions & 1 deletion jbpm-installer/src/main/resources/build.properties
Expand Up @@ -4,7 +4,7 @@
# - set ${release.version} to the current release version.

install.home=./
snapshot.version=7.0.0-SNAPSHOT
snapshot.version=7.1.0-SNAPSHOT
release.version=7.1.0-SNAPSHOT

# the version of jBPM you want to use
Expand Down Expand Up @@ -33,6 +33,19 @@ jBPM.url=https://repository.jboss.org/nexus/service/local/artifact/maven/redirec
# jBPM.console.url=https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.kie&a=kie-wb&v=${jBPM.version}&e=war&c=wildfly10
jBPM.console.url=https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.kie&a=kie-wb&v=${jBPM.version}&e=war&c=wildfly10

# the version of jBPM case mgmt Console you want to use
# and the associated URL you want to get it from
# for example:
#<RELEASE>
# for EAP7:
# jBPM.casemgmt.url=
# for WildFly10:
# jBPM.casemgmt.url=https://origin-repository.jboss.org/nexus/content/groups/public-jboss/org/jbpm/jbpm-wb-case-mgmt-showcase/${jBPM.version}/jbpm-wb-case-mgmt-showcase-${jBPM.version}.war
# or:
#<SNAPSHOT>
# jBPM.casemgmt.url=https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.jbpm&a=jbpm-wb-case-mgmt-showcase&v=${jBPM.version}&e=war
jBPM.casemgmt.url=https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.jbpm&a=jbpm-wb-case-mgmt-showcase&v=${jBPM.version}&e=war

# the version of KIE Server you want to use
# and the associated URL you want to get it from
# for example:
Expand Down
56 changes: 27 additions & 29 deletions jbpm-installer/src/main/resources/build.xml
Expand Up @@ -249,6 +249,23 @@
<get src="${jBPM.console.url}" dest="${install.home}/lib/jbpm-console-${jBPM.version}-${jboss.war.type}.war" />
</target>

<!-- Download jBPM case mgmt console -->
<target name="download.jBPM.casemgmt.check">
<echo message="Checking jBPM case mgmt console download ..." />
<condition property="jBPM.casemgmt.not.available">
<and>
<not>
<available file="${install.home}/lib/jbpm-casemgmt-${jBPM.version}-${jboss.war.type}.war" />
</not>
</and>
</condition>
</target>
<target name="download.jBPM.casemgmt" depends="download.jBPM.casemgmt.check" if="jBPM.casemgmt.not.available">
<echo message="Getting jBPM case mgmt console ..." />
<mkdir dir="${install.home}/lib"/>
<get src="${jBPM.casemgmt.url}" dest="${install.home}/lib/jbpm-casemgmt-${jBPM.version}-${jboss.war.type}.war" />
</target>

<!-- Download kie-server -->
<target name="download.kie.server.check">
<echo message="Checking KIE Server download ..." />
Expand Down Expand Up @@ -279,25 +296,9 @@

<!-- Install jBPM console -->
<target name="install.jBPM-console.into.jboss" depends="download.db.driver,download.jBPM.console,install.configuration.into.jboss">
<mkdir dir="${install.home}/target"/>
<mkdir dir="${install.home}/target/jbpm-console-war"/>
<unzip src="${install.home}/lib/jbpm-console-${jBPM.version}-${jboss.war.type}.war"
dest="${install.home}/target/jbpm-console-war"/>
<copy todir="${install.home}/target/jbpm-console-war/WEB-INF/lib" overwrite="true">
<fileset dir="${install.home}/db/driver"/>
</copy>
<!-- Other configuration like work item handlers -->
<copy todir="${install.home}/target/jbpm-console-war/WEB-INF/classes" overwrite="true">
<fileset dir="${install.home}/conf"/>
</copy>
<!-- install dependencies -->
<antcall target="install.dependencies" />
<zip basedir="${install.home}/target/jbpm-console-war"
destfile="${install.home}/target/jbpm-console-${jBPM.version}-${jboss.war.type}.war"/>
<copy file="${install.home}/target/jbpm-console-${jBPM.version}-${jboss.war.type}.war"
<copy file="${install.home}/lib/jbpm-console-${jBPM.version}-${jboss.war.type}.war"
tofile="${jboss.server.deploy.dir}/jbpm-console.war"
overwrite="true" />
<delete dir="${install.home}/target"/>
</target>
<target name="install.configuration.into.jboss">
<copy file="${install.home}/standalone-${jboss.server.version}.xml"
Expand All @@ -314,22 +315,19 @@
tofile="${jboss.server.conf.dir}/roles.properties"
overwrite="true" />
</target>
<!-- Install jBPM console -->
<!-- Install jBPM case mgmt console -->
<target name="install.jBPM-casemgmt.into.jboss" depends="download.jBPM.casemgmt,install.configuration.into.jboss">
<copy file="${install.home}/lib/jbpm-casemgmt-${jBPM.version}-${jboss.war.type}.war"
tofile="${jboss.server.deploy.dir}/jbpm-casemgmt.war"
overwrite="true" />
</target>
<!-- Install kie-server -->
<target name="install.kie-server.into.jboss" depends="download.kie.server,install.configuration.into.jboss">
<copy file="${install.home}/lib/kie-server-${jBPM.version}-${jboss.war.type}.war"
tofile="${jboss.server.deploy.dir}/kie-server.war"
overwrite="true" />
</target>

<!-- Install dependencies -->
<target name="install.dependencies">
<copy todir="${install.home}/target/jbpm-console-war/WEB-INF/lib">
<fileset dir="${install.home}/dependencies">
<include name="**/*.jar"/>
</fileset>
</copy>
</target>

<!-- Install Eclipse -->
<target name="install.eclipse" depends="download.eclipse,download.eclipse.gef">
<antcall target="unzipEclipse" />
Expand Down Expand Up @@ -413,13 +411,13 @@
</target>

<!-- Install Demo -->
<target name="install.demo" depends="install.jboss,install.db.files,install.jBPM-console.into.jboss,install.kie-server.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse,install.modeler.into.eclipse" />
<target name="install.demo" depends="install.jboss,install.db.files,install.jBPM-console.into.jboss,install.jBPM-casemgmt.into.jboss,install.kie-server.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse,install.modeler.into.eclipse" />

<!-- Install Demo (Eclipse) -->
<target name="install.demo.eclipse" depends="install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse,install.modeler.into.eclipse" />

<!-- Install Demo (No Eclipse) -->
<target name="install.demo.noeclipse" depends="install.jboss,install.db.files,install.jBPM-console.into.jboss,install.kie-server.into.jboss" />
<target name="install.demo.noeclipse" depends="install.jboss,install.db.files,install.jBPM-console.into.jboss,install.jBPM-casemgmt.into.jboss,install.kie-server.into.jboss" />

<!-- ############ START/STOP ############ -->
<target name="start.h2.check">
Expand Down
1 change: 1 addition & 0 deletions jbpm-installer/src/main/resources/standalone-eap-7.0.0.xml
Expand Up @@ -324,6 +324,7 @@
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-console.war"/>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-casemgmt.war"/>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
Expand Down
Expand Up @@ -361,6 +361,7 @@
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-console.war"/>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-casemgmt.war"/>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
Expand Down
Expand Up @@ -368,6 +368,7 @@
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-console.war"/>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-casemgmt.war"/>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
Expand Down
Expand Up @@ -331,6 +331,7 @@
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-console.war"/>
<login-module code="org.kie.security.jaas.KieLoginModule" flag="optional" module="deployment.jbpm-casemgmt.war"/>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
Expand Down

0 comments on commit 39ad73c

Please sign in to comment.