[jBPM] - Re: Using JBPM 5 in Spring Web application
by Franklin Antony
Franklin Antony [http://community.jboss.org/people/frankee787] created the discussion
"Re: Using JBPM 5 in Spring Web application"
To view the discussion, visit: http://community.jboss.org/message/608305#608305
--------------------------------------------------------------
I too am looking at a means to integrate jBPM5 with a webapplication. Earlier in jBPM4 there was bean called org.jbpm.spring.cfg.SpringConfigurationFactoryBean. However am not able to find anything like that in jBPM5. Am also worried about the transaction management on the process server. When a START/COMPLETE etc command is sent to the process server using client.start(...) or client.claim(...), this one call is transactional. However my application runs in another transactional context. This seems to be very dangerous because, if the client.start(...) or client.claim(...) succeeds and my service fails then I wont be able to rollback the whole trascation. Is there a means to bring both jBPM transactional context and Spring service's transactional context together?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/608305#608305]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
Re: [jboss-user] [Beginner's Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
by fernando@lozano.eti.br
Hi Jack,
By the Java EE spec, all local references (ejb-ref, resource-ref, env-ref)
are supposed to be under java:comp/env/. The specs also says this prefix is
ommited from the standard deployment descriptors (web.xml, ejb-jar.xml) and
so JBoss AS is simply being consistent by omitting also from its
proprietary deploymento descriptos (jboss-web.xml, jboss.xml)
[]s, Fernando Lozano
---- Original Message ----
From: Jack Stevens
To: "User development"
Sent: Qui, Jun 2, 2011, 6:19 AM
Subject: [jboss-user] [Beginner's Corner] - Re:
javax.naming.NameNotFoundException: jdbc not bound
JBoss Community (http://community.jboss.org/index.jspa)
Re: javax.naming.NameNotFoundException: jdbc not bound
created by Jack Stevens
(http://community.jboss.org/people/samalexander10) in Beginner's Corner -
View the full discussion (http://community.jboss.org/message/608223#608223)
------------------------------------
Hi Peter,
For this:
jboss-web.xml:
jdbc/TheDS
java:jdbc/SomeDS
why wouldn't it be:
jboss-web.xml:
java:comp/env/jdbc/TheDS
java:jdbc/SomeDS
How does JBoss know to include java:comp/env/ in the if we just put
jdbc/TheDS
Reply to this message by going to Community
(http://community.jboss.org/message/608223#608223)
Start a new discussion in Beginner's Corner at Community
(http://community.jboss.org/choose-container%21input.jspa?contentType=1&co...)
13 years, 6 months
[jBPM] - Process variable and rule task
by Cristiano Nicolai
Cristiano Nicolai [http://community.jboss.org/people/cristiano.nicolai] created the discussion
"Process variable and rule task"
To view the discussion, visit: http://community.jboss.org/message/608017#608017
--------------------------------------------------------------
Hi all,
I'm writing a rule that analyze a variable in my process, and this variable is taken in consideration to fire a rule. So I did something very simple using the from conditional element in the left hand side.
rule "Test"
ruleflow-group "test"
when
$processInstance : WorkflowProcessInstance()
$str : String() from (String)$processInstance.getVariable("strValue");
then
System.out.println("str: " + $str);
end
My doubt is that when I have this variable "strValue" started as a parameter when I start the process everything works fine but when I have it initialized using a Script Task node before my Rule Task node, the rule isn't fired.
kcontext.setVariable("strValue", "test value");
I can check that the value is set if I use it in the right hand side (without from) or getting the variable value from the java code who started the process.
Any guess about this behavior?
#
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/608017#608017]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months