jbossdemocentral / bpms-generic-loan-demo

A BPM Suite demo displaying interaction from a BPM process with rules, guided rules, data models, and human tasks to evaluate an application for a generic loan.
11 stars 21 forks source link

Unexpected error with process pre loaded by init.sh script (mock data) #2

Closed rafaeltuelho closed 9 years ago

rafaeltuelho commented 9 years ago

After setup the demo enviorenment using init.sh script.

# Optional: uncomment this to install mock data for BPM Suite.
#
echo - setting up mock bpm dashboard data...
cp $SUPPORT_DIR/1000_jbpm_demo_h2.sql $SERVER_DIR/dashbuilder.war/WEB-INF/etc/sql
echo

The following error occurs when you try to use that process instances pre loaded by init.sh:

Unexpected error encountered : java.lang.IllegalStateException:The Process id cannot be Empty!

eschabell commented 9 years ago

I uncommented and ran installer, then started dashboard, logged in, opened Process&TaskDashboard, got no errors, see screenshot logs, see screenshot mockdata displayed in tables.

Can you provide any other steps as to what you are doing? Java version (mine is 1.7), OS, etc?

I have added quotes around the echo line, so do a 'git pull' and try that maybe?

screen shot 2014-12-16 at 12 36 58 pm screen shot 2014-12-16 at 12 37 09 pm

rafaeltuelho commented 9 years ago

Hi @eschabell

I can see the process in the Dashboard too. The error occurs when you try to see them in the Process Instances or Tasks List view. When you click in one Process active instance (pre loaded as mock data) you get the following Dialog error window

image

I the screenshot above I click on the Process instance (id 98)

image

This errors occurs with any Process loaded as mock data. If you instantiate a new one inside BPMS it works fine. I saw the same behavior with other demos too (eg. in the bpms-rewards-demo).

note: Nothing appears in the server.log

I'm running on:

eschabell commented 9 years ago

Yes, this is normal as the data is mock data totally unrelated to project deployed in your demo.

The idea being, you talk to the audience about how a real org has many processes running that the dashboard picks up, then you start the generic loan demo that then pops up under user erics, this one you may drill down into.

Should you need or wish to pre-load a bunch of generic loan processes, don't use the mock data, run the client jar in the support directory after starting server and deploying the process. This will start 8 instances, some complete, some sit awaiting task completion and fill the dashboard for you.

If you wish to modify and insert more or other values, see the projects/demo-client project, single class with instance data.

rafaeltuelho commented 9 years ago

Thanks for the explanation about the mock data in this Demo.