JS to CLR mapper

  • 49 Views
  • Last Post 25 July 2024
Scott Malyon posted this 23 July 2024

Hi,

I have been digging around your script engine and would like to know a bit more about the constraints.

Could you tell which package you are using to map onto the CLR so I can refer to it docs. Mainly I am trying to work out what is indeed possible.

For example:

  1. I tried to load my own DLL but the reflection namespace is excluded.
  2. I tried including some of the C# syntax such as @litteral and using.
  3. I tried deserializing some JSON to a class I included but it did not like me defining classes.

I also note you say to avoid async as the workflow engine is not going to wait. This is fair enough but does that only include JS async? Can I use .net async?

Also can you use async when not "part of the workflow" for example building a list for a question.

 

 

Sorry for the random questions, just getting my head around it

 

Order By: Standard | Newest | Votes
Scott Malyon posted this 23 July 2024

I did find a jint dll lurking, is this the script engine - GitHub - sebastienros/jint: Javascript Interpreter for .NET

luca.scarpati posted this 25 July 2024

Hi Scott,

 

in general all you need to know about our JS is this: https://help.scanshare.com/home/scripting/js/ 

I don't know what you're trying to do and what you're trying to use, but in general the use of scripting (VBS and JS) in our application is about trying to get where some modules can't go (extraction of ocr part, create specific file from input variables or documents, store with some special steps or other).

 

I hope it was helpful smile!

 

Best regards,

Luca

 

Close