on 07-31-2015 11:06 AM
Version: hybris-multichannel-suite-4.7.0
The goal is to write an integration-test that test a business process that is started by the de.hybris.platform.processengine.businessProcessService - but the process engine doesn't seem to be active in the junit tenant.
The process is started from one of our own beans. The test is constructed whit the following flow way as a ServicelayerTransactionalTest running whit the admin user
userService.setCurrentUser(userService.getAdminUser())
Construct the input model for the bean
Call the beans method to start the process
Busy waiting until the process stops
Verifying the result of the process
The result is the step 3 keep looping, no logging from the process engine, and no update of the process state.
Based on this i got the following questions:
Is it possible to start the process engine with in the junit tenant?
Where is the limitation of the junit tenant documented? (it doesn't seem to listen fore http request either, e.g. web pages and embedded solr server.)
Yes, a ServicelayerTransactionalTest cannot st new transaction. Using a ServicelayerTest you has to either setup data each time or rollback after the test.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using a ServicelayerTest instead - that should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be nice with a clarification from Hybris on this one - is it possible in newer versions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.