It’s not really a bug of any kind. It absolutely makes sense. You are adding code inside of a method that their framework calls. You are trying to jam code in that is not intended to be there. That is no fault of Epicor’s. That being said there is supposedly in the latest version of Epicor a Global Variables section where you can define stuff outside of the methods a custom code action. Invoke External Method is not to be used that way, but to your point you could create an external DLL and include that into the Using and References tabs.
Joshua Giese
Technology Solutions : CTO
Direct Phone:
920.593.8299
Office Phone:
920.437.6400 x342
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, September 14, 2016 8:04
To: vantage@yahoogroups.com
Subject: [Vantage] Re: C# struct in E10 BPM editor produces compiler error
That's crazy. How the heck does Epicor expect people to use their environment if the parser doesn't handle simple syntax. Is Epicor aware of this and acknowledge there is a problem? I agree, I don't want to write "bogus" code just to get the system to compile. Would a better solution would be to write it in Visual Studio and use the Invoke External Method?