[JBoss jBPM] - Figuring out how process instanciation!
by ricardomarques
Hi all
My purpuse is, from a user (grover on this case), be able to start a process and view that process on the tasklist.
I think I haven't got many problems starting the process, but something must miss, I see the instance created on jbpm_processinstance, but can see the results of the execution.
here's my code:
on the ejb side:
| Object result = null;
| JbpmContext jbpmContext = this.jbpmConfiguration.createJbpmContext();
| try {
| log.debug("executing " + command);
| result = command.execute(jbpmContext);
| } catch (Exception e) {
| throw new JbpmException("couldn't execute "+command, e);
| } finally {
| jbpmContext.close();
| }
| return result;
on the client side:
| NewProcessInstanceCommand cmd = null;
|
| cmd = new NewProcessInstanceCommand();
| cmd.setProcessId(Long.parseLong(pid));
|
| getCommandService().execute(cmd);
to get my tasklist:
| GetTaskListCommand cmd = null;
|
| cmd = new GetTaskListCommand(name,true);
| List result = (List) getCommandService().execute(cmd);
|
|
help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046096#4046096
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046096
19 years
[JBoss Seam] - Conversion error on simple trial
by dkane
Hi colleagues,
Just starting to explore Seam and getting "Conversion error" message on "Registration" example.
3 "Conversion error" lines appears below the input fields after clicking "Sumbit", and no data appears in database.
I was searching for postings with similar problems, and have found one explanation that components.xml should contain
<property name="jndiPattern">ear-file-name/#{ejbName}/local</property>
instead of default
<property name="jndiPattern">#{ejbName}/local</property>
I have made this change (tried file names with and without extension) - no effect.
Could anyone please help me ? Also, I would like to know is it possible to dig up the Exception trace lying under messages like "Conversion error". Stack trace always leads us into the errorneous line in Java code, but "Conversion error" is something that you just know or don't know, without any path to the solution..
Many thanks !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046084#4046084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046084
19 years