2 Replies Latest reply on Dec 27, 2007 7:25 PM by cheng rain

    how send a message in jbpm 3.2.2

    cheng rain Newbie

      in jbpm 3.1.4 , can use follow code to send a message:

      import org.jbpm.msg.Message;
      import org.jbpm.msg.db.DbMessageService;
      import org.jbpm.msg.db.TextMessage;
      ....
      
      
      Message msg=new TextMessage("some messages");
      msg.setDestination(issueUser);
      msg.setToken(arg0.getProcessInstance().getRootToken());
      DbMessageService msgService=new DbMessageService();
      msgService.send(msg);
      msgService.close();
      
      

      and use org.jbpm.db.MessagingSession to get the message.

      please give me a tip how to do this in jbpm 3.2.2.

      thanks.