[jBPM] - Efficient way for predefining assigners(users) from current task to next.
by Eldar Tukshaitov
Eldar Tukshaitov [http://community.jboss.org/people/zanzie] created the discussion
"Efficient way for predefining assigners(users) from current task to next."
To view the discussion, visit: http://community.jboss.org/message/540038#540038
--------------------------------------------------------------
Hello Guys!!! Our company is developing e-court (justice) system for our country. This system is based on Alfresco ECM product, and this product use JBPM 3.x as one of crucial parts. And we have practically completed it. But I think, I can find here more ideas for my problem places. So, we have next problem. Every user should open self workspace and see only self tasks. Then user can one any task, and he will see inner part of task depends from type of task. For ending the task, he should choice transition for next task, and real user (or pool) who have to execute next task. For example: document registrator after generating new process and executing first task should approve process to adviser (adviser`s task). This task can execute some users. Registrator should select one of them. I solve this problem next way. For current task I find all next tasks nodes (use transitions), then I get all tasks from task node, after this a find all assigners to tasks use corresponding jbpm api. So I get for every transition all available users. Then I end task for selected transitions and for fresh task instance I set assignee programmly. Perhaps, we have more efficient decision for problem, but I dont have self minds about it.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540038#540038]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
Re: [jboss-user] [EJB 3.0] - Error working wih EJB3, Struts2 & JBoss 4.2GA
by NAG Kum
NAG Kum [http://community.jboss.org/people/nk_2010] replied to the discussion
"Error working wih EJB3, Struts2 & JBoss 4.2GA"
To view the discussion, visit: http://community.jboss.org/message/540010#540010
--------------------------------------------------------------
Hi Wolfgang,
*Client Code* :
ServiceLocator.getEJB :
public static Object getEJB(String jndiName) {
Object object = null;
Context ctx = null;
try {
ctx = new InitialContext();
object = ctx.lookup(jndiName);
} catch (Exception e) {
e.printStackTrace();
}
return object;
}
public static final String RemoteJNDIName = "AuthenticationBean/remote";
AuthenticationRemote authEjb = (AuthenticationRemote)ServiceLocator.getEJB(AuthenticationBean.RemoteJNDIName);
System.out.println("EJB Look up successfull ");
*Jndi View* :
+- AuthenticationBean (class: org.jnp.interfaces.NamingContext) | +- remote (class: org.jnp.interfaces.NamingContext) | | +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef) | | +- metaData (class: org.jboss.metadata.client.jboss.JBossClientMetaData) | | +- env (class: org.jnp.interfaces.NamingContext) | | | +- com.tarangtech.mtg.authentication.AuthenticationBean[link -> AuthenticationBean/remote] (class: javax.naming.LinkRef) | | +- classPathEntries (class: java.util.ArrayList)
Pls find *jboss-client.xml*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-client PUBLIC
"-//JBoss//DTD Application Client 5.0//EN"
" http://www.jboss.org/j2ee/dtd/jboss-client_5_0.dtd http://www.jboss.org/j2ee/dtd/jboss-client_5_0.dtd">
<jboss-client>
<jndi-name>AuthenticationBean/remote</jndi-name>
<ejb-ref>
<ejb-ref-name>com.tarangtech.mtg.authentication.AuthenticationBean</ejb-ref-name>
<jndi-name>AuthenticationBean/remote</jndi-name>
</ejb-ref>
</jboss-client>
Pls .. suggest me as it is urgent ......
Regds,
NK
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540010#540010]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months