How to refer general settings in K2

rated by 0 users
This post has 1 Reply | 1 Follower

Top 500 Contributor
Posts 22
Points 61
Phanibabu Kandala Posted: Mon, Jun 29 2009 1:51 AM

Hi,

I've a K2 blackpearl process that refers a custom class library.

When a new task is created, a custom event is triggered and calls a method in the custom class library.

The method in the custom class library contains a variable that refers to a file path which is hard-coded. I want to remove this hard-coded setting and place the filepath in a configuration file. I tried adding a app.config file to the custom class library project and refer the file path from the configuration file within the custom method.

When I make use of the key outside of the K2 application it refers to the key and writes to the appropriate file path but when I refer the key defined in the configuration file within the K2 application, the key value returns null.

Can anyone tell me of how can I refer these general settings defined in the configuration file.

Thanks in advance!!!

Regards,

Phanibabu Kandala

  • | Post Points: 4
Top 25 Contributor
Posts 200
Points 971
jan replied on Tue, Jun 30 2009 9:26 AM
Just a though: maybe an easier solution will be to have the configuration key in the K2 String Table? what do you think?

Jan
The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.

  • | Post Points: 1
Page 1 of 1 (2 items) | RSS