0

I would like to develop a workflow designer or BPM using C# with asp.net mvc core. Please help me on how to run methods from xml file without using reflection.

Sample link which i got below

Reading XML and executing functions dynamically using C#

  • I would like to use drag and drop components - ex : copy file, Move file
  • While saving this components or a workflow , it will be saved in xml format
  • Ex : <Myworkflow><method><CopyFile><prop><from></from><to></to></prop></CopyFile></method><Myworkflow>

  • Execute/call a predefined function written - sequentially based on this XML with parameters

Kindly help me with resources which will dynamically call methods with parameters without reflection.

Cheers

4
  • Check Windows Workflow Foundation Commented Feb 8, 2020 at 10:39
  • Suppose you want to write a custom thing (otherwise @Eldar's suggestion is probably worth exploring) - I don't think you can completely avoid using reflection at some stage. Why is it an issue? Commented Feb 8, 2020 at 10:43
  • As far my research or googling - Reflection seems very slow and recommendation is to use delegates. Please suggest or help me with basic examples of how to achieve this. Please correct me if i am wrong. Commented Feb 9, 2020 at 4:11
  • LINQ Expression trees might be an option for you. It still requires you to reflect over certain parts of your types, but then you get to keep the compiled delegates and run them at near native speed Commented Feb 12, 2020 at 17:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.