Skip to main content

Is there anybody can help me about how to call a static method? 

 

Can I call a static method which is defined in another project? In the dialog "Manage Process References", I have included my own dll, but after I click Finish button, it is not apear in the dialog "Call a static method". Did I do something wrong? Anybody can help me about this, thank you in advance.

Might I suggest another option: Use a Server Event (Code)* to call your code.  We do what you are doing regularly using this activity.  Drop the activity on your workflow, then right-click on the event and choose View Code.  Write c# to your heart's content.

 

* I don't have K2 open in front of me at the moment, so this might not be the exact name of the event. :-o


Thank you for the solution you provided, it's very helpful. But I'm still wondering that why the reference does not appear after I included it. Do you have any idea about this? 


Reply