How to refer general settings in K2

  • 29 June 2009
  • 1 reply
  • 1 view

Badge +4

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


1 reply

Badge +6
Just a though: maybe an easier solution will be to have the configuration key in the K2 String Table? what do you think?

Reply