This content has been marked as final.
Show 5 replies
-
1. Re: what is par file? + has anyone used deploy.html in jbpm.
vtysh May 24, 2007 6:46 AM (in response to vipul.gupta)Use eclipse plugin to create process archive. (Deployment tab->Save Process Archive Locally)
-
2. Re: what is par file? + has anyone used deploy.html in jbpm.
vipul.gupta May 24, 2007 6:48 AM (in response to vipul.gupta)I did the same but when i tried to upload this file using deploy.html page it says "not a process archive file".
-
3. Re: what is par file? + has anyone used deploy.html in jbpm.
vtysh May 25, 2007 4:04 AM (in response to vipul.gupta)jbpm-starters-kit-3.1.3 has sources of the web application, and uploading servlet works fine with created by plugin archives. Here is a snip of a code:
ZipInputStream zipInputStream = new ZipInputStream(fileItem.getInputStream()); JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(zipInputStream); log.debug("Created a processdefinition : " + processDefinition.getName() ); jbpmContext.deployProcessDefinition(processDefinition); zipInputStream.close(); return "Deployed archive " + processDefinition.getName() + " successfully";
How you should see, par file is a simple zip archive with some special structure.
In the root folder should exist
gpd.xml
processdefinition.xml
processimage.jpg
in classes folder you can put necessary classes -
4. Re: what is par file? + has anyone used deploy.html in jbpm.
kdeboer May 25, 2007 10:01 AM (in response to vipul.gupta)Ah i have the same issue!
In my case the processdefinition files are not stored in the root or the par but in classes/{processname}
I am using the latest 3.2 GA JPDL suite
Regards Karl de Boer -
5. Re: what is par file? + has anyone used deploy.html in jbpm.
kdeboer May 25, 2007 10:54 AM (in response to vipul.gupta)The error was due to renaming the simple process. If you donto start with a default simple process the par is generated correctly