[JBoss Portal] - Setting user's roles doesn't trigger Hibernate PreInsert or
by JohnnyTheHun
I am using JBoss Portal 2.7.0 CR1 on Windows, JDK5
I am logging JBoss Portal Admin usage via Hibernate Event listeners.
I have added the listeners to server\default\deploy\jboss-portal.sar\conf\hibernate\user\hibernate.cfg.xml:
| <listener type="pre-update" class="mypackage.HibernateAuditLogListener"/>
| <listener type="pre-delete" class="mypackage.HibernateAuditLogListener"/>
| <listener type="pre-insert" class="mypackage.HibernateAuditLogListener"/>
| <listener type="pre-load" class="mypackage.HibernateAuditLogListener"/>
|
I am able to catch User creation, modification, Role creation modification etc.
But my PreUpdateListener or my PreInsertListener does NOT fire if I add a Role to a user's roles through the admin page:
Members -> User management -> search users -> roles -> ...select roles.... -> submit
Why doesn't my HibernateEventListener get fired when JBoss Portal saves the roles? How can I log setting the roles of a user?
Thanks,
John
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234570#4234570
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234570
13 years, 9 months
[JBoss jBPM] - jBPM timer's Action getting locked
by sumit.jbpm
Hi there,
I am using the jbpm-jpdl-3.2 version in my project. There are certain processes in my project where I am using jbpm-timer feature.
I have defined the timer in my processdefinition.xml in the following fashion:
| ....
| <timer name="billingNotification" duedate="5 minutes" >
| <action class = "com.myproject.integration.jbpm.billingapproval.handlers.BillingTimerHandler">
| <processName>billingapproval</processName>
| </action>
| </timer>
| ....
|
The problem that I am facing is that the above timer fires whenever I am manually increasing the system-time limit beyond the timer-time limit. But if suppose I am simply waiting for 5 mins then the timer action is getting locked just after the timer expires, and doesnot get executed.
Why is this happening?
I have given servlet entry for 'JobExecutorServlet' in the project's web.xml.
Also the jbpm.cfg.xml and hibernate.cfg.xml are having relevant entries regarding JobExecutor and timer.
If any body can help me accross in this regard it will be a great help. Or if any further info required for answering plz let reply to this question.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234562#4234562
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234562
13 years, 9 months
[JBoss jBPM] - Re: JBPM Identity
by jpramondon
I may missing one last thing. It may sound dull, but I've been asking myself and couldn't find any cleaner solution than the one I'm finally using.
So here it is :
When I was using the default ExpressionAssignmentHandler, I used to pass it an Expression. (Well nothing stunning until now). This expression was some kind of clue to which actor was finally getting the task.
Now, I'm using my own AssignmentHandler, but it seems like the only possibility to pass it a clue to which user (or group) is actually getting the task is by using variables. So I end up writing something like this :
In the class that creates a new process instance :
| HashMap<String,Object> variables = new HashMap<String,Object>();
| variables.put(contractID, "" + contractID);
| variables.put("group", "control-attendants");
|
In the AssignmentHandler :
| String group = (String)executioncontext.getVariable("group");
| assignable.setPooledActors(group);
|
It's working, but I hate it. It ties the process definition to my code : the group name is completly resolved in the code.
Is there any other way in the process definition to define a variable that I would get as a clue in my AssignmentHandler ?
Or even a cleaner solution that you would think of ?
Thanks for your time and opinion.
Cheers,
Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234555#4234555
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234555
13 years, 9 months