If you need to deploy a process by code, you can use something like this:
byte[] parBytes = readFully("yourfile.par");
JbpmContext ctx = JbpmConfiguration.getInstance().createJbpmContext();
new DeployProcessCommand(parBytes).execute(ctx);
ctx.close();
If you want to deploy a simple xml process definition, you can replace parBytes
with a String containing your XML.
Hope this helps.
Massimiliano.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186644#4186644
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186644
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user