Giter VIP home page Giter VIP logo

bpms-assignment's Introduction

GPTE Red Hat BPMS Suite 6.3 Advanced Process Development Assignment

Installation

  1. Download the gpte-bpms-advanced-630.vdi VirtualBox image
  2. Start VirtualBox and navigate to: Machine โ†’ New.
  3. In the Create Virtual Machine panel, populate its fields:
  4. Name: gpte-bpms-advanced
  5. Type: Linux
  6. Version: Red Hat (64-bit)
  7. Click Next.
  8. In the Memory panel, specify 4096 MB of RAM and click Next.
  9. In the Hard Disk panel:
  10. Select Use an existing virtual hard disk file.
  11. Browse your hard drive and select the previously downloaded gpte-bpms-advanced-630.vdi image.
  12. Click Create.
  13. Click Start.

User Configuration

  • Create the following users:
sales1/redhat@123
executive1/redhat@123
  • With the following groups:
sales1=user,sales,kie-server,rest-all
executive1=user,executive,kie-server,rest-all

Email Configuration

  • Update the file:
~/lab/bpms/standalone/deployments/kie-server.war/WEB-INF/classes/userinfo.properties
[email protected]:en-UK:sales1
[email protected]:en-UK:executive1
  • Start SMTP:
cd ~/lab/simple-smtp
$ ./simple-smtp
  • Configure SMTP:
cd ~/lab/bpms/bin
./jboss-cli.sh -c --controller=127.0.0.1:9999
[[email protected]:9999] /system-property=org.kie.mail.session:add(value="java:jboss/mail/Default")
[[email protected]:9999] /subsystem=mail/mail-session=default:write-attribute(name=from, [email protected])
[[email protected]:9999] /subsystem=mail/mail-session=default/server=smtp:write-attribute(name=username,value=admin)
[[email protected]:9999] /subsystem=mail/mail-session=default/server=smtp:write-attribute(name=password,value=password)
[[email protected]:9999] /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=host,value=localhost)
[[email protected]:9999] /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=port,value=2525)
[[email protected]:9999] exit

Dependencies

  • data-model
mvn clean package install
cp target/data-model-1.0.jar ~/lab/bpms/standalone/deployments/business-central.war/WEB-INF/lib
  • permit-service
mvn clean package install
cp target/permit.war ~/lab/bpms/standalone/deployments

Kie Server

  1. Deploy -> Rule Deployments
  2. Add Container
  3. Name: neworderpermitting_1_0
  4. Group Name: com.solarvillage.neworderpermitting
  5. Artifact Id: process-definition
  6. Version: 1.0
  7. Finish
  8. Start Container

Commands

  • Start a Non HOA Member instance
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user jboss:bpms -d '{"_name":"Daniel B. G. Goncalves", "_address":"Av. Brigadeiro Faria Lima, 3900 - Sao Paulo - Brazil", "_installationType":"residential", "_area":"100", "_hoaMember":"n"}' http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/processes/com.solarvillage.neworderpermitting.NewOrderPermitting/instances
  • Start a HOA Member instance
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user jboss:bpms -d '{"_name":"Daniel B. G. Goncalves", "_address":"Av. Brigadeiro Faria Lima, 3900 - Sao Paulo - Brazil", "_installationType":"residential", "_area":"100", "_hoaMember":"y"}' http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/processes/com.solarvillage.neworderpermitting.NewOrderPermitting/instances
  • Signal for a meeting request with a sales representative (within 2 minutes after creating a HOA Member instance)
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user jboss:bpms -d '"meetingRequest"' http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/processes/instances/{id}/signal/meetingRequest
  • Sales1: claim a task
curl -X PUT -H "Accept: application/json" --user sales1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/claimed"
  • Sales1: start a task
curl -X PUT -H "Accept: application/json" --user sales1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/started"
  • Sales1: complete a task
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -d '{"_installationRequested":"n"}' --user sales1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/completed"
  • Executive1: claim a task
curl -X PUT -H "Accept: application/json" --user executive1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/claimed"
  • Executive1: start a task
curl -X PUT -H "Accept: application/json" --user executive1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/started"
  • Executive1: complete a task
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -d '{"_finalDecision":"n"}' --user executive1:redhat@123 "http://localhost:8080/kie-server/services/rest/server/containers/neworderpermitting_1_0/tasks/{id}/states/completed"
  • Groups: all tasks assigned for sales group
curl -X GET -H "Accept: application/json" --user jboss:bpms "http://localhost:8080/kie-server/services/rest/server/queries/tasks/instances/pot-owners?groups=sales"
  • Groups: all tasks assigned for executive group
curl -X GET -H "Accept: application/json" --user jboss:bpms "http://localhost:8080/kie-server/services/rest/server/queries/tasks/instances/pot-owners?groups=executive"

bpms-assignment's People

Contributors

danielbgg avatar jbride avatar

Watchers

 avatar

Forkers

jbride

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.