JBoss BPM Example App - Installation instructions

1.  unzip jboss-brms-bpmsuite-${version}-quickstarts.zip
2.  Copy example web service (provided in the zip) to BPM Server deployments directory
    e.g. cp jboss-brms-bpmsuite-${version}-quickstarts/jboss-bpmsuite-example/jboss-mortgage-demo-ws.war ${BPM Server Dir}/standalone/deployments/
3.  Start BPM Suite server using ${BPM Server Dir}/bin/standalone.sh
4.  Open your browser and navigate to business central (e.g. http://localhost:8080/business-central)
5.  Click 'Authoring' > 'Administration'
6.  Click 'Repositories' > 'Clone repository'
7.  Enter the following parameters in the dialog box:
       Repository Name: 'Mortgages'
       Organizational Unit: 'example' (assuming this exists, otherwise create one using 'Organizational Units' prior to step 5)
       Git URL: 'file://${CURRENTPATH}/jboss-brms-bpmsuite-${version}-quickstarts/jboss-bpmsuite-example/mortgage-demo/.git'
       User name: '<EMPTY>'
       Password: '<EMPTY>'
    This will clone the repository to business central.
8.  Now you can view the demo artifacts in Project Explorer. Navigate to 'Authoring' > 'Project Authoring' and in Project Explorer select 'example' > 'Mortgages'
9.  To deploy project click 'Open Project Editor' and in the panel that opens click 'Build' > 'Build & Deploy'
10. You can view and start the definition of the example 'Mortgages' process in 'Process Management' > 'Process Definitions'
    Note that some of the tasks created by the process can only be claimed by users that are part of the group 'broker', 'appraiser' or 'admin',
    you might have to create a new user with that role first (using ${BPM Server Dir}/bin/add-user.sh).
11. You can also start some example processes from command line using a remote client provided with the example:
    java -jar jboss-mortgage-demo-client.jar USERNAME PASSWORD [http://localhost:8080/business-central] [com.redhat.bpms.examples:mortgage:1]
    e.g. java -jar jboss-mortgage-demo-client.jar admin your_password
    Note that your user needs to have the 'rest-all' role to be able to access the remote api,
    you might have to create a new user with that role first (using ${BPM Server Dir}/bin/add-user.sh). 
    If there is no error, then you view the process instances that were started in 'Process Management' > 'Process Instances'
