miércoles, 30 de julio de 2014

... how to install default workflows for FSW 6.0

FSW 6.0 comes with a nice graphical installer that will install SwitchYard, RTGov and DTGov (S-RAMP). It happens, that DTGov comes with some sample workflows to demonstrate how the product works, but these workflows are not installed by default, so they need to be installed after FSW installation has finished.
You can do one of two approaches:

Deploy with maven

Navigate to jboss-eap-6.1/dtgov-data and create a local settings.xml containing the user credentials for the S-RAMP repository. This file must also contain the Overlord admin password that you configured during installation. Here is an example:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
Ensure that the server is up and running, and deploy the "SimpleReleaseProcess" sample workflow to the server by running the following command:
mvn -s local-settings.xml deploy

Install with s-ramp cli

These are the commands to to the installation:
s-ramp:connect http://localhost:8080/s-ramp-server admin <YOUR_PASSWORD>
s-ramp:upload  dtgov-workflows-1.0.1.Final-redhat-8.jar KieJarArchive
s-ramp:property set maven.groupId org.overlord.dtgov
s-ramp:property set maven.artifactId dtgov-workflows
s-ramp:property set maven.version 1.0.1.Final-redhat-8
s-ramp:property set maven.type jar
NOTE: The artifact that you upload needs to have in META-INF/maven (somewhere in there) a pom.properties with the artifact GAV (GroupId, ArtifactId, Version), otherwise there is an exception very difficult to track down.