[jBPM] - 5.1 Console appears still can't totally sync with Guvnor
by Bruce Cui
Bruce Cui [http://community.jboss.org/people/brucecui] created the discussion
"5.1 Console appears still can't totally sync with Guvnor"
To view the discussion, visit: http://community.jboss.org/message/611797#611797
--------------------------------------------------------------
I'm new to jbpm5 and drools. I have been fighting with the 5.0 release with various weird problems for the recent days. Today I noticed 5.1 just got released so couldn't wait to download and have a try.
I noticed in the blog, it was mentioned that there would be a new enhanced feature "Automatic synchronization of processes in the jbpm-console when new processes are deployed on the Guvnor repository".
But my testing result on this is:
1. Console can reflect added Guvnor processes definition, but only in a newly opened console window. A pre-opned console cannot see the new process def no matter I refresh or relogin.
2. Archived or even deleted processes cannot be reflected on console during runtime. I had to restart the demo to see the process def finally got removed from console.
I'm not sure if it's a problem specific to me or others meet the same. I was thinking of using the console to drive my batch processes. Can any advise whether it is reliable enough for production env?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611797#611797]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - Re: How can a Service Task take integer variable via additional parameters?
by Kris Verlaenen
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion
"Re: How can a Service Task take integer variable via additional parameters?"
To view the discussion, visit: http://community.jboss.org/message/612162#612162
--------------------------------------------------------------
Hi,
#{expression} only works for String parameters (as the result it produces is a String). To map any other object to a Task parameter, you should use parameter mapping. Parameter mapping allows you to copy the value of a process variable to the Task parameter. For example, if you want to copy an Integer as a service parameter, define a parameter mapping that copies the value from a process variable to that service parameter. You can use an on-entry/on-exit action on your service task (or a normal script task before the service task) to set the value of the Integer (in this case something like kcontext.setVariable("myIntVariable", new Integer(mxInt));
The documentation on service input / output mapping has recently been extended, so it might be useful to reread the core engine: basics chapter and the human tasks chapter.
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612162#612162]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - A question about Process Editors in jBPM 5.1.0 Final
by byungwoojun
byungwoojun [http://community.jboss.org/people/byungwoojun] created the discussion
"A question about Process Editors in jBPM 5.1.0 Final"
To view the discussion, visit: http://community.jboss.org/message/611723#611723
--------------------------------------------------------------
*1. Eclipse BPMN 2.0 editor*
I downloaded the jBPM 5.1.0 Final today. After I installed them, I realized that the Eclipse Process designer is still based on the Drools Flows. I expected the jBPM 5.1.0 supports full BPMN2 spec and contains a new Eclipse editor. Did I miss something?
I know there is a blog, saying I can install the BPMN2.0 Eclipse editor from http://www.schabell.org/2011/03/jboss-developer-studio-40-how-to-add_23.html http://www.schabell.org/2011/03/jboss-developer-studio-40-how-to-add_23.html according to Eric D. Schabell (see, http://community.jboss.org/thread/167349 http://community.jboss.org/thread/167349). Since this editor didn't come from the jBPM 5.1.0 official download site, I was waiting for the jBPM 5.1.0 final which was supposed to include the new editor (that was what I thought).
*If the offical BPMN2.0 Eclispe editor is not ready yet, does anyone know when?*
*2. Guvnor designer*
BTW, the Oryx-based Guvnor designer still does not support the subprocess. It can draw it but when I tried to save it, the sub-process I put was gone. I looked at the jBoss AS server.log, and found the following exception, saying "
2011-06-23 11:40:14,109 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/designer].[UUIDBasedRepositoryServlet]] (http-localhost%2F127.0.0.1-8080-5) Servlet.service() for servlet UUIDBasedRepositoryServlet threw exception
java.lang.IllegalArgumentException: No enum const class com.intalio.bpmn2.impl.Bpmn20Stencil.Subprocess
"
*Is there any plan to fix this problem?*
Thanks,
bwj
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611723#611723]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[EJB3] - Concurrence management
by Alessandro Laurucci
Alessandro Laurucci [http://community.jboss.org/people/fox82] created the discussion
"Concurrence management"
To view the discussion, visit: http://community.jboss.org/message/612126#612126
--------------------------------------------------------------
Hi to all,
I'm developing my first EJB3 application with eclipse. I don't know i manage the insert into a database in case of duplicate key.
I use this code:
*Table KGTWANAUSER01:*
-user (key)
-password
*Entity bean:*
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity @Table(name="KGTWANAUSER01")
public class User implements Serializable {
private static final long serialVersionUID = 1L;
@Id @Column(name="USER") private String USER;
@Column(name="PASSWORD") private String PASSWORD;
public User(String us, String pswd)
{ this.user=us; this.password=pswd; }
public String getUSER()
{ return USER; }
public String getPASSWORD()
{ return PASSWORD; }
public void setUSER(String uSER)
{ USER = uSER; }
public void setPASSWORD(String pASSWORD)
{ PASSWORD = pASSWORD; }
}
#
*Stateless Session Bean (register method):*
....
public String register(String user, String password)
{
User us = new User (user, password)
List existing = em.createQuery(
"select username from User where username = #{user.username}")
.getResultList();
if (existing.size()==0)
{
em.persist(us);
return "OK";
#
}
else
{
return "NO;"
}
}
....
My problem is this:
I have two client A e B that want to create their new user, both with the username "ale":
A call register method, execute the select, no other user "ale" are register so existing.size=0;
B call the same method, and also in this case no other user "ale" are register so existing.size=0;
A make em.persist(us) adn the transaction is OK
B try to make the insert with the persist, but the user now exist, so the application crashs and Jboss show me a list of errors caused by the duplicate key...
Ho i can solve this problem?
Thanks to All
Alessandro
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612126#612126]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months