[jboss-user] [JBoss jBPM] - Re: deploy a procesee to jboss server suing java code

ziccardi do-not-reply at jboss.com
Tue Nov 4 06:47:47 EST 2008


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



More information about the jboss-user mailing list