[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?
coolex
do-not-reply at jboss.com
Wed May 14 11:09:30 EDT 2008
OK, I'm trying now to execute the following code:
private void startProcessDefinition() {
| String processDefinitionName = new String("websale");
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
| GraphSession graphSession = jbpmContext.getGraphSession();
| ProcessDefinition definition = graphSession.findLatestProcessDefinition(processDefinitionName);
| ProcessInstance instance = definition.createProcessInstance();
| instance.signal();
| jbpmContext.save(instance);
| } finally {
| jbpmContext.close();
| }
| }
"Websale" is the standard jBPM process that is already deployed on the server. Now I just want to start it with the help of this method that is in my jsp file.
Now I don't get any errors but also nothing happens I mean that I don't see in the jbpm-console that the process has been started.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150787#4150787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150787
More information about the jboss-user
mailing list