I want to change the values insides the BPEL file during deployment to weblogic server.
Please let me know how it can be achieved?
Is it possible with configuration plans?
In BPEL process we are hardcoded some value as xml fragment so we want to change them during deployment of JAr file.
Please help me out on this issue as early as possible.
Thanks in advance,
<!-- Receive input from requestor. (Note: This maps to operation defined in SiebelHeaderPOCBPEL.wsdl) -->
<receive name="receiveInput" partnerLink="siebelheaderpocbpel_client"
<!-- Generate reply to synchronous request -->
In above code, we have used xml fragment to set username and password. So we need to change them during deployment time.. This is my exact requirement
The deployment descriptor is very useful but that can't be used inside xml fragment.
Please help me on this issue.
Edited by: 839026 on Nov 21, 2012 1:26 AM
No OOTB solution for this I think. What you can do is that keep your username and passwords inside the preference properties as illustrated in the link shared by Vijay.
Retrieve these properties values inside your BPEL and place them in the XML fragment appropriately before assignment.
In this way, your username and password is exposed to Preference property that could be changed through 2 ways:
- From the EM console at Runtime without needing to redeploy the code as stated in the link above
- Through the configuration plan at the time of deployment (which is what you want, as shown below for username)