[jBPM] - jBPM Users and Roles using JEE security
by John Bize
John Bize [https://community.jboss.org/people/jbize] created the discussion
"jBPM Users and Roles using JEE security"
To view the discussion, visit: https://community.jboss.org/message/716571#716571
--------------------------------------------------------------
Hello,
My last request for help received no replies, so I hope this product isn't dead. Is it dead or dying? Is it being replaced by Activiti?
I am still trying to use jBPM 5.2 in an existing application with a variety of technologies including Spring 3.1 and JEE realm security.
The users are authenticated and authorized via the realm. The users are not pre-provisioned or managed within the application (database). I want to equate the users roles (as in web.xml security-role) to swimlanes. (I presume that is the correct association.) Can that be done? If so, how?
When a user in a particular role (as in .isUserInRole()) opens a particular page, he will see the "inbox" for all users in that role. After he completes the activity, the process will move on to the next user Task and will show up in any inboxes for it's role. Does this make sense?
Thanks,
John
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/716571#716571]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[Beginner's Corner] - Persistence error after migration from tomcat
by Michael Cornegg
Michael Cornegg [https://community.jboss.org/people/Jobame] created the discussion
"Persistence error after migration from tomcat"
To view the discussion, visit: https://community.jboss.org/message/717402#717402
--------------------------------------------------------------
Hello,
after getting AS7 and the quickstarts up and running I wonder where I can continue reading other than https://docs.jboss.org/author/display/AS71/Documentation https://docs.jboss.org/author/display/AS71/Documentation. I am in search for documentation which e.g. explains why in the quickstart examples no web.xml was necessary or what are the specifics of using hibernate with AS7.
After migrating my multimodule project from tomcat I cannot deploy it on AS7 due to the below error message. Looks like something is missing in persistence.xml - where can I find information on what exactly it is (name, content,...)?
08:45:36,103 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."jatpresent.war#jatPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."jatpresent.war#jatPU": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
Caused by: java.lang.UnsupportedOperationException: The application must supply JDBC connections
at org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:146)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:460)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
08:45:36,400 INFO [org.jboss.as.server] (management-handler-threads - 7) JBAS015870: Deploy of deployment "jatpresent.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"jatpresent.war#jatPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jatpresent.war#jatPU\": Failed to start service"}}
Regards,
Michael
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717402#717402]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - Re: The users or groups which human task server add is stored in db?
by Arun V G
Arun V G [https://community.jboss.org/people/arunvg] created the discussion
"Re: The users or groups which human task server add is stored in db?"
To view the discussion, visit: https://community.jboss.org/message/717356#717356
--------------------------------------------------------------
Hi Jimmy ,
From other forum posts and my experiments what I found is that the better way for identity managment is to use the UserGroupCallback interface. Using this you can avoid implicit addition of users/groups in runtime.
org.jbpm.task.service.UserGroupCallback is the interface provided for this purpose.
The interface has three methods :
* boolean existsUser(String userId)
+Validates whether the input userid is valid for your application. If you are doing an evaluation , always return a true, the user assigned to the task in the process definition would be automatically added to the+
+ ORGANIZATIONALENTITY table ( magic :) )+
* boolean existsGroup(String groupId)
+ Validates whether the input groupId is valid for your application.Similar to above for evaluation we can return true and the above magic repeats.
+
.
* List<String> getGroupsForUser(String userId, List<String> groupIds, List<String> allExistingGroupIds)
+ +
+ Never tried this, but as in case of the other methods , the method signature says it all..+
Just shared my thoughts may be it would help you .
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717356#717356]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month