[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-12 Thread kukeltje
hmmm sorry... i missed that :-( and btw, please repost the workflow and put it 
in code tags

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063449#4063449

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063449
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-12 Thread galvino
i gave you error in the first post

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063371#4063371

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063371
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-11 Thread kukeltje
what error?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063093#4063093

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063093
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-11 Thread galvino
hi, thanks to response to my first post.

iam using  

  | jbpm-3.1.4 
  | jboss-4.0.4.GA (download with jems-installer-1.2.0.GA.jar)
  | mysql server 5.0
  | 
  |  
  | i want to do an struts application by using jbpm API.
  | so i set some configurations and i want to get a task list for one user i 
have this error.
  | 
  | this my workflow :
  | 
  | anonymous wrote : 
  |   | 
  |   |
  |   |
  |   |
  |   |   
  |   |  
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |
  |   |
  |   |   
  |   |  
  |   | 
  |   | 
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |   
  |   |
  |   |
  |   |   
  |   |  
  |   | 
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |
  |   |
  |   | 
  |   | 
  | 
  | this is that i do:
  | 
  | anonymous wrote : 
  |   | protected ActionForward performAction(ActionMapping mapping, ActionForm 
form, HttpServletRequest request, HttpServletResponse response) throws 
Exception {
  |   | 
  |   | 
System.out.println("\nStartProcessInstance.\n");
  |   | JbpmContext jbpmContext=null;
  |   | GraphSession graphSession=null;
  |   | TaskMgmtSession taskMgmtSession=null;
  |   | ArrayList tasks;
  |   | 
  |   | 
jbpmContext=this.getJbpmContext(request).getJbpmConfiguration().getCurrentJbpmContext();
  |   | graphSession=jbpmContext.getGraphSession();
  |   | taskMgmtSession=jbpmContext.getTaskMgmtSession();
  |   | 
  |   | try{
  |   | 
  |   | ProcessDefinition processDefinition = 
graphSession.loadProcessDefinition(2);
  |   | 
  |   | // create a new process instance to run
  |   | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  |   | 
  |   | // create a new taskinstance for the start 
task
  |   | TaskInstance taskInstance = 
processInstance.getTaskMgmtInstance().createStartTaskInstance();
  |   | 
taskInstance.setActorId(jbpmContext.getActorId());
  |   | 
  |   | // Save the process instance along with the 
task instance
  |   | jbpmContext.save(processInstance);
  |   | 
  |   | 
  |   | this.setJbpmContext(request, 
jbpmContext);
  |   | 
  |   | }catch(JbpmException e){
  |   | e.printStackTrace();
  |   | }finally{
  |   | if(this.getJbpmContext(request) != 
null) {
  |   | try {
  |   | 
this.getJbpmContext(request).close();
  |   | } catch (JbpmException e) {
  |   | e.printStackTrace();
  |   | }
  |   | }
  |   | }
  |   | return  mapping.findForward("success");
  |   | }
  |   | 
  |   | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062986#4062986

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062986
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-11 Thread [EMAIL PROTECTED]
Please list your version array and provide some more info on what you are 
trying to achieve. It looks like your client program runs against a jbpm 
database from another version.

Regards,
Koen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062821#4062821

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062821
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user