Skip to Content
2
Jul 31, 2015 at 10:06 AM

Running business processes from an integration test

570 Views

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())

  1. Construct the input model for the bean

  2. Call the beans method to start the process

  3. Busy waiting until the process stops

  4. 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:

  1. Is it possible to start the process engine with in the junit tenant?

  2. 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.)