Which engine is used to run mobile and server-side workflows
Where can I find more information about supported expressions in Mobile and Server-side workflows? Which engine is used in these environments?
I noticed for instance that String.replace() is supported everywhere, but String.replaceAll() is not. This is of course just an example (and it also does not work in Edge), but what I'd like to know is how to find out in advance if a certain expression is supported or not.
-
Hi Berend,
Workflow Server runs in .NET Core v2.1. We're planning to upgrade to v3.1 at some point in the near future.
0 -
Rereading my question I think I could have been clearer. I was thinking about the Javascript part of a server workflow. Say I have a Create Value activity with Expression:
="Hello World".substr(6)How is 'substr' parsed?
0 -
Hi Berend,
The .NET version of Workflow uses a library called Jint, which evaluates the entire expression as JavaScript. In your example, the "substr" method is recognized by jint.
There are more advanced cases as well which we have custom code to handle, but the short answer is that we use Jint.
0 -
Thanks, that's very useful.
0 -
Hi Ken Lyon, thanks for the info about JINT. I'm new to Workflow development for mobile and server. I see in the workflow designer, by setting the deployment environment to VertiGIS Mobile it will filer out all non-compatiable Activities for running on mobile. However, it won't highlight any compatibility issue about the expression, just like examples Berend had. Is there a way to improve the user experience, so we don't have to debug the issues on server-side or mobile-end, which is usually not very convenient. thank you.
0 -
Jack Zhang We're working up updating this to have Mobile support the same syntax as Typescript.
0
Please sign in to leave a comment.
Comments
6 comments