[jBPM] - Instantiating a process in JBPM5
by Imran Naqvi
Imran Naqvi [http://community.jboss.org/people/imran.h] created the discussion
"Instantiating a process in JBPM5"
To view the discussion, visit: http://community.jboss.org/message/618923#618923
--------------------------------------------------------------
I have deployed jbpm5 in my web container. I am trying to emulate the example given here to create a process instance of the Evaluate.bpmn process:
http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#d0e1532 http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#d0e1532
But whenever I run this code I get an error: java.lang.IllegalArgumentException: Unknown process ID: Evaluation
My code snippet is:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("Evaluation.bpmn"), ResourceType.BPMN2);
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
JPAWorkingMemoryDbLogger logger = new JPAWorkingMemoryDbLogger(ksession);
ProcessInstance processInstance = ksession.startProcess("Evaluation");
The error is thrown when at the last line. I have not done anything to configure the database so most likely thats the problem. Although I dont think the guide explicitly this.
I wish to just get the process execution working. I dont need the console. My questions are:
1) I tried locating the hibernate config file in the jars but didnt find them. Can some one point me to it.
2) Since my project already uses hibernate, is it safe to assume all I need to do is incorporate the jbpm hibernate files into it to make it work?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/618923#618923]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - Variables - the basics
by Diogo Saad
Diogo Saad [http://community.jboss.org/people/diogosaad] created the discussion
"Variables - the basics"
To view the discussion, visit: http://community.jboss.org/message/623217#623217
--------------------------------------------------------------
Hi All,
I'm a jBPM newbie and I'm trying to understand "jBPM variables".
Can you please help me with the following questions:
a) How many variable scopes does jBPM have (i.e: Process Instance, Process Node, ...)
b) Is there any predefined variable besides kcontext that can be used in Script Tasks / Gateway Constraints /etc?
c) In which scope kcontext.setVariable() operate?
d) If I click at the process canvas in eclipse I can see a propertie "variables", which scope is this? Where variables defined there are visible?
e) Which variables are visible inside User Tasks and Service Tasks?
f) A variable defined in Script task is a "Process Instance Variable" ? Are they visible to other nodes?
I'm sorry for this basic questions but I'm struggling to understand so many maps being created and same variables put to kcontext over and over in the examples I find online.
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623217#623217]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months