Cannot find source during execution
I have written C# code for an activity, while stepping through the VS debugger I am getting an error when the following statement is executed:
protectedoverrideSystem.Workflow.ComponentModel.ActivityExecutionStatus Execute(System.Workflow.ComponentModel.ActivityExecutionContext executionContext) {
#line
1 "c18538fb-f4cc-4a89-80b0-71bb19b7cb76"
The statement is that is generated by the above code is:
c:\ProgramData\Metastorm\BPM\GeneratedSourceCode\Metastorm.Runtime.Models.CS.WIFI_Card_Request_Project\5.0.4595.25516\c18538fb-f4cc-4a89-80b0-71bb19b7cb76
The file source can not be located so the code errors out.
Comments
-
As I now understand it, these VS script activities really are script (as opposed to compiled code). As such they are text that is executed at run time using the Execute() function (I think it is that, not a .net expert).
Because of this, and the difficulty in finding code in activities, we keep all code in a C# code file. I believe these are complied, and keeping it this way makes i good and clear divide between the UI, Process and code. This is a central part of our forthcoming Design Guide.
Try creating a function and promoting it to the VS toolbox and using that. I think you should be able to debug that.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories