Part of the requirements state that a certain business unit will be providing their data model for you to leverage.
This data model will not be designed in the JBoss BPM Suite Data Modeler but you need to have access to it while working on your rules, events and processes from the business central dashboard.
For this article we will be using the JBoss BPM Travel Agency demo project as a reference, with it's current data model built externally to the JBoss BPM Suite business central. The external data model is called the acme-data-model and is found in the project directory:
This data model is built during installation and provides you with an object data model as a Java Archive (JAR) file which is installed into the JBoss BPM Suite business central component by placing it into the following location:
jboss-eap-6.4/standalone/deployments/business-central.war/WEB_INF/lib/acmeDataModel-1.0.jar
Authoring --> Artifact repository. |
Within JBoss BPM Suite there is an Artifact Repository that is made just for this purpose. We can upload through the business central dashboard UI all our models and then pick and choose from the repository artifacts (your data model is one artifact) on a per project basis.
This gives you absolute control over the models that a project can access.
Choose external data model file. |
Here is how you can do it yourself:
- obtain and install JBoss BPM Travel Agency demo project
- remove current data model from global business central application:
$ rm ./target/jboss-eap-6.4/standalone/deployments/business-central.war/WEB_INF/lib/acmeDataModel-1.0.jar
Upload external model jar file. |
- start JBoss BPM Suite server after installation as stated in the installation instructions
- login to JBoss BPM Suite at http://localhost:8080/business-central with:
- u: erics
- p: bpmsuite1!
- go to AUTHORING --> ARTIFACT REPOSITORY
- go to UPLOAD --> CHOOSE FILE... --> projects/acme-data-model/target/acmeDataModel-1.0.jar --> click button to UPLOAD
- this puts the external data model into the JBoss BPM Suite artifact repository
Select dependencies to add to project. |
- got to AUTHORING --> PROJECT AUTHORING --> OPEN PROJECT EDITOR
- in project editor select GENERAL PROJECT SETTINGS --> DEPENDENCIES
- in dependencies select ADD FROM REPOSITORY -> in pop-up SELECT entry acmeDataModel-1.0.jar
If you build & deploy the project, run it as described in the project instructions you will find that the external data model is available and used by the various rules and process components that are the JBoss BPM Travel Agency.
Looking to Automate your business? |
As a closing note, this works exactly the same for JBoss BRMS projects.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.