JBoss Community

Deploy ProcessDefinition fail,BLOB is NULL

created by frh10 ff in jBPM - View the full discussion

Hi!

     I use jbpm4.4,when i deploy a ProcessDefinition,it run as well,but i check the database jbpm4_lob ,i find the new ProcessDefinition's BLOB_VALUE is null,and i can't get this ProcessDefinition because the jpdl.xml is null,here is my code:

     DeploymentImpl di = (DeploymentImpl) repositoryService.createDeployment();

     String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><process name=\"VacationRequest\" xmlns=\"http://jbpm.org/4.4/jpdl\"><start g=\"16,56,48,48\" name=\"start\"><transition to=\"verify_request\"/></start><task  g=\"96,54,178,52\" name=\"verify_request\"><transition g=\"-34,9\" name=\"reject\" to=\"vacation_rejected\"/><transition g=\"-46,-26\" name=\"accept\" to=\"vacation_accepted\"/></task><end g=\"306,16,48,48\" name=\"vacation_accepted\"/><end g=\"306,96,48,48\" name=\"vacation_rejected\"/></process>";

     di.addResourceFromString(“textWF.jpdl.xml”, xml);

 

     when i run this,the jbpm's database add a ProcessDefinition,but like this:

     http://community.jboss.org/servlet/JiveServlet/downloadImage/2-639225-17400/450-46/QQ%E6%88%AA%E5%9B%BE20111201135605.png

how can i solve this problem?Thanks!

Reply to this message by going to Community

Start a new discussion in jBPM at Community