HI all,
Got a question regarding whether or not it is recommend to change the auto generated code in K2 workflow events.
For example: i drag an email event onto visual studio workflow. I right click on the event and click "View Code". This shows me what code is being executed by the email event i just dragged on to the canvas. Now i can see several methods, the one I want to change is the SendMail_Execute(object sender, EventArgs e).
Now all i want to put here is a simple if condition around the code of this method to check the value of a datafield and depending on that either execute the code to send the email or not. Now, If I do this, will there be problem in the future. Has anyone experienced problems when doing something similar. If seems easier and visually cleaner to do this than to create a seperate activity and line rules. Especially since this occurs a lot in this process I am making.
Thanks