2 Replies Latest reply on Dec 2, 2011 8:53 AM by swiderski.maciej

    Deploy ProcessDefinition fail,BLOB is NULL

    frh10

      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:

           QQ截图20111201135605.png

      how can i solve this problem?Thanks!