[jboss-user] [JBoss jBPM] - Re: how to get a processEngine already created?
shekharv
do-not-reply at jboss.com
Fri Jun 19 01:12:04 EDT 2009
If you do not want the tables to be redeployed everytime,
change the property below in jbpm.hibernate.cfg.xml
update
If you do not want to delete the users, just comment out those statements in the respective testcases. The testcases do not assume anything as to what can or cannot be present and hence attempt creating a pristine environment and then clean up after they are done, which is what any good test should do(as much as possible).
This is an example from the TaskCandidatesTest. You can delete the identityService calls if u really want to avoid the deletion.
protected void tearDown() throws Exception {
// delete process deployment
repositoryService.deleteDeploymentCascade(deploymentDbid);
// delete identities
identityService.deleteGroup("sales-dept");
identityService.deleteUser("johndoe");
identityService.deleteUser("joesmoe");
super.tearDown();
}
HTH,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238653#4238653
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238653
More information about the jboss-user
mailing list