[jBPM] - createProcessInstance + startProcessInstance does not update processinstanceinfo state
by Affan Dar
Affan Dar [https://community.jboss.org/people/affandar] created the discussion
"createProcessInstance + startProcessInstance does not update processinstanceinfo state"
To view the discussion, visit: https://community.jboss.org/message/718535#718535
--------------------------------------------------------------
I am seeing a strange issue in my jbpm 5 + hibernate + mysql configuration.
A test process 'com.sample.bpmn' consists of the following: start -> myactivityhandler -> somescript -> end
myactivityhandler is an async activity handler and hence 'execute' returns without calling completeWorkItem.
Now after execution of the following snippet:
..
ksession.startProcess("com.sample.bpmn");
..
I look at the ProcessInstanceInfo for the process and I see that the instance state is rightful set to ACTIVE since the process is actually active and just hit its first savepoint after the myactivityhandler.
However if I break the startprocess down to the following:
..
ProcessInstance pi = ksession.createProcessInstance("com.sample.bpmn", null);
ksession.startProcessInstance(pi.getId());
..
After execution of the above two, I expect the state would be the same as the previous snippet i.e. process instance state == ACTIVE but in reality it is set to PENDING. Also when I trace the SQL that hibernate is sending to MySQL I don't see any UPDATE going to the ProcessInstanceInfo table. This is a problem since now I can't complete the myactivityhandler workitem to continue the process.. and it needs to be started again.
Any clue why the above two scenarios are behaving differently?
Fwiw, if I configure the system to use the in-memory H2 then everything works fine and dandy.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/718535#718535]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss Tools] - BrowserSim FAQ
by Yahor Radtsevich
Yahor Radtsevich [https://community.jboss.org/people/yradtsevich] modified the document:
"BrowserSim FAQ"
To view the document, visit: https://community.jboss.org/docs/DOC-18100
--------------------------------------------------------------
*Q: What is BrowserSim ?*
*A:* BrowserSim is a Browser Simulator which primarily is intended for having a quick, easy and multi-platform way of testing if your webapp will render and behave correctly on a mobile device.
*Q: How does BrowserSim works ?*
*A:* It wraps a webkit browser and makes it respond and send work like a mobile browser by spoofing content and media request headers.
*
Q: What do I need to run BrowserSim?*
*A:* The requirements for different platforms are as listed below:
* Windows:* Only 32-bit Eclipse/JBDS is supported;
* Apple http://www.apple.com/quicktime/download/ QuickTime or http://www.apple.com/itunes/download/ iTunes must be installed (they contain Apple Application Support which provides WebKit engine for BrowserSim).
* Linux:* WebKitGTK 1.2.0 or newer must be installed and available in the library load path.
* This should be available on RHEL and Ubuntu by default, if not use your package manager to install libwebkitgtk
* Mac OS X* It just works.
*Q: Can I use the browser as a replacement for testing on a real phone or emulator?*
A: Browsersim make it easy to test basic layout questions/issues on any platform without having to install a platform specifc emulator or manually try use a phone.
That said it is not 100% reliable since there are so many different brands/versions of phones there will be differences in behavior, thus no, BrowserSim does not replace real or emulated phone testing.
For full verfication/testing you should test on a real phone.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18100]
Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 7 months