K2 objects in K2 code modules
Sorry, none that I know of.
Regards,
Ockert
I agree with Ockert as I'm not aware of any either.
However, what is it that you need from these different objects? If it is just the ProcessInstance and/or ActivityInstance objects why not just create one method in your Code Module and pass in the two objects explicity as parameters, instead of the entire K2 context object? It requires just slight modifications to your calling code, but greatly simplifies your Code Modules.
If you define your parameter as Object then you can pass in "K2", just be sure the properties/methods you are executing exists in all the variations you are passing in.
You'll lose intellisense.
Let me know if this works: Parameter you pass in is ByvVal K2 as Object.
You are sending some generic email that uses K2.StringTable and calls from ClientEventContext and ServerEventContext.
You can fake it to one of the EventContext and still get intellisense/early binding compile.
Dim objK2 As ServerEventContext
objK2 = DirectCast(K2,ServerEventContext)
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.