  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - I need the package | - I need the package 2007-06-13 - By yave.guadano
Back hi. here: -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- -- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- --
public class XorJoinHandler implements JoinHandler {
public void join(JoinContext joinContext) throws ExecutionException {
// if there is really an arriving token if ( joinContext.getConcurrentTokens().size() != 0 ) { //get other tokens than the arriving token Collection brotherTokens = joinContext.getConcurrentTokens().values (); // get the token arriving in this join Token arrivingToken = joinContext.getToken(); //cancel all living brother tokens... Iterator iter = brotherTokens.iterator(); while(iter.hasNext()){ Token token = (Token) iter.next(); // ExecutionService es = JbpmServiceFactory.getInstance() .openExecutionService(token.getActorId()); // the line above resulted in infinite waits to some jdbc-lock method (I'm using postgres). This // works for me and looks "cleaner" to me ExecutionService es = joinContext.getExecutionService(token .getActorId()); es.cancelToken(token.getId()); } // reactivate the parent token. joinContext.reactivateToken( arrivingToken.getParent() ); } } }
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- -- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- --
i need the package org.jbpm.delegation, because i must import the class JoinHandler and someones more. can anyone help me? can anyone send me some .jar? thanks Yav?? Guada??o mail to yave.guadano@(protected)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4054016#4054016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4054016
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |