I have created a Process Model with Start a Process Template. My Process Model has around 58 Process Variabes but through WEBApi when i try to pass those details, Web Api Throws an error like
"Expression may not be longer than 4,000 characters. You have entered 6,811 characters."
what can be done to overcome this?
Thanks,
Sakthi S.
Discussion posts and replies are publicly visible
Hi, where is this error coming? When you test or in actual process calling?
Assuming that you have an incoming JSON data structure, why not pass that into the process?
Another option is to pass the JSON into a separate expression which maps that into a dictionary containing all your process parameters. Then use this expression inside a!startProcess.
I was mistaken.
The expression editor for web APIs is limited to 4k characters of actual expression code.
Ah, thank you for that. Yes, reading the error more clearly that's what it's saying.
Disregard what I posted earlier; you'll simply have to get what you want with fewer lines of code.
The "trick" here is to use expressions instead of squeezing all the code into the API itself.
Thank you Stefan, will try creating an expression and map the details