[jBPM] - Re: Session and thread safety
by Marcin Gałązka
Marcin Gałązka [https://community.jboss.org/people/marcin.galazka] created the discussion
"Re: Session and thread safety"
To view the discussion, visit: https://community.jboss.org/message/723636#723636
--------------------------------------------------------------
New version (workflow-test-case-v2.tar.gz) attached. Use 'mvn -Dgroups=spring clean test' to run Spring based test or 'mvn -Dgroups=simple clean test' to run non-Spring based test. Do not run both tests at once ('mvn clean test') - it looks that due to the some background thread spawned by Bitronix TM a data source isn't unbinded from JNDI fast enough and you will get 'java.lang.IllegalArgumentException: resource with uniqueName 'jdbc/jbpm-ds' has already been registered'. I did not investigate the matter further, it is irrelevant here.
I've also fixed parallel tests (mis)configuration.
Every tests (Spring, non-Spring) contains two methods:
- testOwnTransaction - should pass.
- testJoinedTransactions - should fail.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/723636#723636]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - How to migrate Guvnor Knowledge Base packages to another Guvnor?
by byungwoojun
byungwoojun [https://community.jboss.org/people/byungwoojun] created the discussion
"How to migrate Guvnor Knowledge Base packages to another Guvnor?"
To view the discussion, visit: https://community.jboss.org/message/647498#647498
--------------------------------------------------------------
I created Knowledge Base packages (added BPMN2 resources) in my local Guvnor. After completion of my unit testing, I want to move the knowledge base packages to another Guvnor, so I don't have to recreate the same packages from the scratch.
I know I can use a Eclipse project, importing all the resources from Guvnor and then adding the resources to another Guvnor. But, I am looking for a more direct way, for example, export the packages from Guvnor and import the packages into another Guvnor directly. Maybe I can create package snapshots and use the Administration Import/Export??? So, here is my question, how do I export the resource packages to another Guvnor?
Many thanks in advance,
bwj
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647498#647498]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Re: Accessing process variables in rule-task
by Hunor-Attila Kerekes
Hunor-Attila Kerekes [https://community.jboss.org/people/subbass00] created the discussion
"Re: Accessing process variables in rule-task"
To view the discussion, visit: https://community.jboss.org/message/724877#724877
--------------------------------------------------------------
Hello Esteban,
I have the same problem what leon has. I have added to my fisrt human task at the entry action the kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance()); script. My rule currently look like this :
import com.sample.User;
import org.drools.runtime.process.WorkflowProcessInstance
rule "AgeCheck3"
ruleflow-group "AgeCheck"
when
processInstance : WorkflowProcessInstance()
age: Integer() from (Integer)((WorkflowProcessInstance)processInstance).getVariable("Age");
eval(age < 18);
then
processInstance.setVariable("Name", new String("Denied"));
System.out.println(age);
end
If I am removing the age declaration with eval(true) the rule is fired and the name is set to Denied. The compiler accept the declaration, no errors during te running phase, but the rule is not fired.
Can you help me plese? I am doing my master thesis and this is also a small part of it.
Thank you in advance.
Kind regards, Hunor
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724877#724877]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months