Highlighted

Property file

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

10-12-2008

I would like to know how a process reads data from a property file. And, how do I implement it so it will be easy to make adjustments to such a file.



I would really appreciate any help on this matter.



Sincerely

Bjorn Lundstrom

Replies

Highlighted

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

10-12-2008

To clearify(or not), I guess I could hold values for lets say DirectoryConfigs in my exported config.xml file. But, from a process, how do I reach the values in config.xml?



Or, I might be way off here.



Thank you for your help.

/Bjorn
Highlighted

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

10-12-2008

There is a operation from the File Utils called Read XML that will read the content of you xml in a xml variable

Then, you can use a SetValue with an xPath expression to access the node you want.

For example if you have a simple xml like this:







then you xPath would look something like /process_data/myXMLvar/books/book/title

Jasmin
Highlighted

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

11-12-2008

Thank you Jasmin for helping out in this matter. Although, I have another question. If I put my xml in a folder. Is there always a place where ReadXML looks? I mean, is there a HOME folder that it always goes to? I mean, if I go from TEST-environment to PRODUCTION...will it always look in the same folders?



I totally appreciate your assistance.



Sincerely

Bjorn
Highlighted

Avatar

Avatar

aoatak

Avatar

aoatak

aoatak

11-12-2008

Hi Bjorn,

There is no HOME folder for Read XML operation. You specify the folder to read from, in the property sheet of this operation. You can find configuration details in Workbench Help :

http://livedocs.adobe.com/livecycle/8.2/wb_help/wwhelp/wwhimpl/js/html/wwhelp.htm



Oguz

http://www.kgc.com.tr
Highlighted

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

12-12-2008

Oguz, thank you for your reply.



That's what I was afraid of. So, is there a way to set variable that will be read from a property file? I mean, if you go from test-environment to production-environment and you, for example, want loggings to be to a different catalog?



I seem not able to find this out from the documentation.



If you can shed more light on this matter I will be very grateful.



Sincerely

Bjorn
Highlighted

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

12-12-2008

Do you absolutly need to use a properties file. The other thing you can do is create a variable and set it to be "Configuration parameter".



That way you can set that variable using the adminui interface (on the service) and the value would be used by your process at execution time.



Jasmin
Highlighted

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

12-12-2008

Jasmin, thank you for your response. It might work very well for the solution I have in mind.



Again, thank you very much.



Sincerely

Bjorn Lundstrom
Highlighted

Avatar

Avatar

_Bjorn_Lundstro

Avatar

_Bjorn_Lundstro

_Bjorn_Lundstro

12-12-2008

Jasmin(and others).



Even though I look for my component within the adminui(and I find it) I seem not able to do anything with the process, like setting any variables...?!?



I seem to need further assistance I'm afraid. Am I supposed to go to Home/Services/LiveCycle Process Management ES / Process List



and from there locate my process, click it and then..?



I'm stumped...



Sincerely

Bjorn Lundstrom
Highlighted

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

12-12-2008

Bjorn,



You need to go under

Home > Services > Applications and Services > Service Management



That's where you define the properties for the services.



If you go under Home/Services/LiveCycle Process Management ES / Process List you actually see the process instances that were started. That's not what you want. You want to configure the service before it gets called.



Jasmin