[JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?
by cristian_e
"MindTheGap" wrote : Ok, that's my point!
|
| So what type of nodes i must use to have this kind of interface?
|
| Fork node? ... using it, the token goes to B and C...and if the user choice B can i suspend/terminate the token in C?
|
Yes, you can. We have done this with the following steps:
- Capture the node-enter event for the fork's join. It will be activated when the first subtoken gets to the join.
- Set a context variable saying that the first token has arrived to the join. This can be whatever you want.
- Using this token, get a reference to all it's siblings (token.getParent().getChildren()).
- Cancel or end every sibling. If they are signalling, then at the join node-enter handler you have to check if the variable set when the first one entered is set. If it is, the previous steps should not be done again, and the token has to simply enter the node without doing anything more.
For the decision node case there are not subtokens, it's just the root token in this case that get redirected to either path. So you won't have B and C task instances simultaneously created, only one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058761#4058761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058761
18Â years, 9Â months
[JBossCache] - jboss cache + glassfish - problem using GenericTransactionMa
by jsaraiva
I'm using glassfish Application Server 9.0_01 (build b02-p01) and jboss cache 1.4.1.SP3 Cayenne, with OPTIMISTIC node locking scheme.
Here is part of the configuration file:
jboss:service=Naming
jboss:service=TransactionManager
org.jboss.cache.GenericTransactionManagerLookup
OPTIMISTIC
.....
.....
At startup no transaction manager is found and it falls back to the dummy transaction manager.
Here's the log:
2007-06-28 14:44:54,835 INFO [org.jboss.cache.GenericTransactionManagerLookup] (main) Failed to perform a lookup for [java:/TransactionManager (JBoss, JRun4)]
2007-06-28 14:44:54,836 INFO [org.jboss.cache.GenericTransactionManagerLookup] (main) Failed to perform a lookup for [javax.transaction.TransactionManager (BEA WebLogic)]
2007-06-28 14:44:54,839 INFO [org.jboss.cache.GenericTransactionManagerLookup] (main) Couldn't find any WebSphere TransactionManager factory class, neither for WebSphere version
5.1 nor 5.0 nor 4
2007-06-28 14:44:54,846 WARN [org.jboss.cache.GenericTransactionManagerLookup] (main) Falling back to DummyTransactionManager from JBossCache
....
....
Can anyone help me setting up jboss cache to use glassfish's transaction manager?
Thanks
JS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058752#4058752
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058752
18Â years, 9Â months