This content has been marked as final.
Show 2 replies
-
1. Re: Deployment of PAR with DeployServlet
aguizar Nov 10, 2005 7:22 PM (in response to gwittwer)Encoding problems, perhaps? Try adding this at the beginning of your processdefinition.xml:
<?xml version="1.0" encoding="windows-1252"?>
Or whatever encoding your Windows-based text editor is using.
See issue 321 for further details. Be aware that this solution applies to jBPM 3.x, x > 0
About error reporting, we are working in that area. Check out issue 322.
You can deal with deployment errors this way:try { // create a process archive ZipInputStream zipSource = new ZipInputStream(externalSource); ProcessArchive archive = new ProcessArchive(zipSource); // build a process definition from the archive contents ProcessDefinition definition = archive.parseProcessDefinition(); // check for parse errors if (archive.getProblems().isEmpty()) { // deploy the process to the database ProcessArchiveDeployer.deployProcessDefinition(definition); } else { // deal with parser errors } zipSource.close(); } catch (Exception e) { // deal with system errors }
-
2. Re: Deployment of PAR with DeployServlet
gwittwer Nov 11, 2005 1:10 PM (in response to gwittwer)Thx! Works great!
Regards
Gerhard