Designer > Process Deployment > Using a BPRD Script to Regenerate and Deploy a BPR Contribution
  

Using a BPRD Script to Regenerate and Deploy a BPR Contribution

Select a workspace project to store the Ant script that you can execute for future re-deployments of the .bpr archive.
When you create a .bpr file, as described in Creating and Deploying a Business Process Archive Contribution, you have the option to create an Ant script (a .bprd file) that you can use to quickly regenerate and deploy a .bpr file.
Use the BPRD Ant script to:
You can execute the BPRD Ant script from within Process Developer or on the command line outside of Process Developer.
For details, see:

Running a BPRD Ant Script from within Process Developer

When you create a .bpr file, as described in Creating and Deploying a Business Process Archive Contribution, you have the option to create an Ant script (a .bprd file) that you can use to quickly regenerate and deploy a .bpr file.
Automatically Deploying a .bpr File
If you did not select a Deployment Type when you created the .bpr archive, you can add deployment information to the BPRD script and execute the script.
  1. 1. From the Project Explorer, double-click the .bprd file to open it.
  2. 2. Follow the comments in the script to provide File or Web Service deployment information. You must specify a valid archive deployment location and enable the deploy target.
  3. For example, for the archive.deployment value, type in:
    http://localhost:8080/active-bpel/services/ActiveBpelDeployBPR
  4. 3. Save the file.
  5. 4. Ensure that the server is running, and then in the Project Explorer, select the right-mouse menu for the .bprd file and select Execute.
  6. Process Manger informs you when the new .bpr is deployed.
Regenerating a .bpr File
You must update a .bpr file after you have modified one or more files in the original archive. If your archive contains many BPEL and .pdd files, you may find it quicker and more convenient to update the archive by using the Ant script you created when you first created the .bpr file.
If you want to add any new processes and their resources to the archive, you must create a new .bpr using the File > Export option or modify the .bprd file by hand to add syntactically correct references to the new files. To modify the .bprd file by hand, you must be familiar with the Ant scripting language.
To regenerate a .bpr file:
  1. 1. In the Project Explorer, select the .bprd file you created the first time you created the business process archive (.bpr) file.
  2. 2. Right-mouse click and select Execute.
  3. Process Developer informs you when the new .bpr is generated.

Running a BPRD Ant Script from the Command Line

When you create a .bpr file, as described in Creating and Deploying a Business Process Archive Contribution, you have the option to create an Ant script (a .bprd file). You can execute this file within Process Developer or on the command line.
To execute the BPRD Ant script from the command line, you must set up your Ant environment and install the Ant Runtime component of Process Developer.
There are sometimes network issues if your are using JAVA 7 and IpV6. If you experience issues with BPR deployment or cluster communications, you should use the -Djava.net.preferIPv4Stack=true flag when starting your server.
To set up Ant, you must make files available to your Ant environment. Choose one of the following methods.
Method One: Set up your Ant environment by copying jars to your Ant installation
Ensure that the following files are in your {$ant.home}\lib directory
Method Two: Install the B-unit Runtime and edit your BPRD file to make the changes described below
Change the following lines:
<taskdef name="validatebpr"
classname="com.activee.ant.bpr.tasks.AeValidateBPRTask" />
<taskdef name="deploybpr"
classname="com.activee.ant.bpr.tasks.AeDeployBPRTask" />
<taskdef name="createcatalog"
classname="com.activee.ant.bpr.tasks.AeCreateCatalogTask" />
<taskdef name="createcontribution"
classname="com.activee.ant.bpr.tasks.AeCreateContributionTask" />
to this:
<path id="bprd.classpath">
<fileset dir="--FILL IN PATH TO B-UNIT RUNTIME HERE--">
<include name="*.jar"/>
</fileset>
</path>
<taskdef name="validatebpr" classpathref="bprd.classpath"
classname="com.activee.ant.bpr.tasks.AeValidateBPRTask" />
<taskdef name="deploybpr" classpathref="bprd.classpath"
classname="com.activee.ant.bpr.tasks.AeDeployBPRTask" />
<taskdef name="createcatalog" classpathref="bprd.classpath"
classname="com.activee.ant.bpr.tasks.AeCreateCatalogTask" />
<taskdef name="createcontribution"
classname="com.activee.ant.bpr.tasks.AeCreateContributionTask" />