[JBoss jBPM] - Re: JBPM Identity
by jpramondon
Yeah ... my last post wasn't that readable ... new try.
___________________________
Hi There,
I've been following this very interesting thread from the start and I'm really glad someone helps as much as you do.
I'm in a similar situation as Sherry's and if I understand well your post above, by simply not specifying any asignment expression in a task, the identity module is not used. Is this correct ?
If so, then the things I have to do to override the default ExpressionAssignmentHandler to define my own AssignmentHandler (say an LDAP one; for instance) are :
- comment these lines in the hibernate config
| <mapping resource="hibernate.extra.hbm.xml" />
| <mapping resource="hibernate.identity.hbm.xml" />
|
- define a new class implementing AssignmentHandler interface
- refer to this class in the process desgin like this
| <task-node name="createContract">
| <task name="createContractTask">
| <assignment
| class="com.company.GreatAssignmentHandler"
| />
| </task>
| <transition to="fork1"></transition>
| </task-node>
|
Is that right ?
You also recommend custom AssignmentHanlders to react to some passed variable in order to find which user the task should be assigned to. How exactly would one pass such variable to the AssignmentHanlder ?
Thanks for precious time,
Cheers,
Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234340#4234340
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234340
15 years, 6 months
[JBoss jBPM] - Re: JBPM Identity
by jpramondon
"kukeltje" wrote : Ok, here is another quick reply ;-)
|
| Well, you are kind of there, but not completely. I have to admit, the area of extending/overriding the identitycomponent and/or the ExpressionAssignmentHandler is/was kind of not really flexible and certainly not realy documented well.
|
| I think the best/easiest way is to not use the identity component and explicitly put AssignmentHandlers on tasks/swimlanes and not use expressions explicitly, at least not the jpdl expressions. You could pass a string param to your custom assignmenthandler which is in fact the expression you want to use and evaluate that in your assignmenthandler. The downside to this is that you have to explicitly put the assignmenthandler everywhere you want it. This is already reduced when using swimlanes btw.
|
| hth a little
Hi There,
I've been following this very interesting thread from the start and I'm really glad someone helps as much as you do.
I'm in a similar situation as Sherry's and if I understand well your post above, by simply not specifying any asignment expression in a task, the identity module is not used. Is this correct ?
If so, then the things I have to do to override the default ExpressionAssignmentHandler to define my own AssignmentHandler (say an LDAP one; for instance) are :
- comment these lines in the hibernate config
<mapping resource="hibernate.extra.hbm.xml" />
| <mapping resource="hibernate.identity.hbm.xml" />
|
- define a new class implementing AssignmentHandler interface
- refer to this class in the process desgin like this
anonymous wrote : <task-node name="createContract">
|
|
|
|
| </task-node>
|
| |
| | Is that right ?
| | You also recommend custom AssignmentHanlders to react to some passed variable in order to find which user the task should be assigned to. How exactly would one pass such variable to the AssignmentHanlder ?
| |
| | Thanks for precious time,
| |
| | Cheers,
| |
| | Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234337#4234337
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234337
15 years, 6 months
[JBoss jBPM] - jBPM Beta2 Hibernate Not Persisting
by rams.rapol
Hi,
When i try to deploy a processdefinition with jBPM Beta2, everything seems to be running fine (the hibernate insert queries show up fine). However when i query the database, i dont see any records in jbpm_execution.
The way i configured is i have a class which extends JBPMConifguration (similar to JBPMTestCase) and is configured in spring xml.spring xml also has sessionfactory, datasource, etc defined. Also my class is annotated with transaction as well.
What seems to be happening is jbpm is fetching its own hibernate session and my class has got its own session.
I know where the problem is (in jbpm.cfg.xml i need to be able to specify spring's session factory instead of hibernate config file but haven't found proper syntax or a sample of jbpm.cfg.xml in jbpm4 beta2 version.
Configuration in jbpm.cfg.xml:
| <hibernate-configuration>
| <cfg resource="jbpm.hibernate.cfg.xml"/>
| </hibernate-configuration>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234185#4234185
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234185
15 years, 6 months