Expand my Community achievements bar.

SOLVED

Check-In, Check-Out, Deploy APIs

Avatar

Level 2

Hi,

In our application, when moving from development over to QA and then over to prod, we keep having to update IPs in our forms in order for them to be able to call the web services in their respective environments. I'm hoping to create a LiveCycle process that will automate all that. My idea is to have an execute script which would check-out the resources, update their IPs (I have this part already), check-in the files and redeploy the application. I can't seem to find how to do this programmatically. There must be some web service or API on the server since workbench is able to do all of this.

Perhaps this is not the best solution for what I am trying to accomplish, I'm open to suggestions.

Thanks in advance!

Nic

1 Accepted Solution

Avatar

Correct answer by
Level 10
9 Replies

Avatar

Level 10

Another appoach could be tu use a variable and make it of type "Configuration". That way the variable can be set from adminui once the application is deployed and you don't need to hard code the value in your process.

Jasmin

Avatar

Level 2

Hi Jasmin,

Thanks for the reply. Unfortunately, as far as I've been told, it is not feasible or at least practical to dynamically change the address of a web service that a form is invoking. Granted this could work for a process but for a form.... I was able to do it in a render process but this adds a lot of processing to an already heavy render process. This is why I am looking at a one time execution to actually modify the xdp source and check it back in.

Thanks

Nic

Avatar

Level 10

ok. I'm not sure if that's what you were trying to do in your render process, but you could merge data which contains the WSDL url of the Web Service and dynamically change it that way.

Jasmin

Avatar

Level 2

Thanks again! I just checked with my colleagues, yes we could pass in the wsdl url in on the render, but this ends up creating more work on the server and client when we can just change it once (manually right now through a search and replace) in the xdp before deploying to our new environment. This is why I am trying to automate this and need the ability to checkin/checkout and deploy/undeploy programmatically.

Are you aware of any of these APIs being exposed either through a web service or EJB?

Thanks

Nic

Avatar

Correct answer by
Level 10

Avatar

Level 2

I had already looked at this article but it didn't do any of the check in/check out, so I never tried really hard to get it working. Since you brought it up, I decided to give it another shot and to my surprise, there is no need to to the check out/check in and redeploy, you can just call updateResource and it updates the file in the repository. I have yet to update its content and save it back, but this is extremely promising.

Thank you very much!!

Nic

Avatar

Level 2

Just finished my little demo, works great, thanks! updateResource does the trick.

Nic

Avatar

Level 2

Hello again, turns out the updateResource only does the checkin/checkout part. It does not redeploy the resource for me. Would you happen to know the API for that piece?

Thanks

Nic

Avatar

Level 2

My apologies, no need to redeploy after updating the resource, the server simply needs to have its form cache reset.