Closed MaheshkumarSundaram closed 9 months ago
What release are you using In 2.0.0 you need to add $ in condition
Thanks @ralphhanna.
Is $
symbol required in front of start
or end
inline scripts in Execution Listeners
too as they are JS expressions?
As a result of your question, I had a change of mind!!!! Sorry, It looks much simpler not to add '$' for condition and others that are explicit JavaScripts '$' is only required for:
Please see https://github.com/bpmnServer/bpmn-server/blob/rel2.0.0/docs/scripting.md and review Awaiting your feedback Thanks
Hi @ralphhanna,
Sorry, It looks much simpler not to add '$' for condition and others that are explicit JavaScripts
I agree. The document seems nice which covers all the usecases.
Just to clarify on your example for Input/Output, now the latest version supports all types of Input/Output -> Text
, List
, Map
& JavaScript
explicitly instead of using Text
for all types. Am I right?
Thanks.
@ralphhanna Following the above, I tested these recent changes.
I don't see any problems with functionalities. But there is a very minor issue when displaying the instance details.
Although I provided key/value pairs for the Map
variable in the model, the instance details doesn't display it while all other types of data get displayed properly. This problem pertains solely to the UI aspect. Functionally, I can read those inputs and process accordingly without any problem.
Thanks.
Correct, new release support all allowed types list,map,text and Script Thanks for noticing it, JSON.Stringify does not support map, so now I use array, here is the result
@ralphhanna, Could you please commit this change? Thanks
Done
Hi @ralphhanna,
I don't think the last two commits by you are reflected in the npm
package.
Could you please verify this? Thanks.
Done, Thanks
Hi @ralphhanna,
Conditional Expression evalution seems to be wrong.
In my
appServices.ts
, I have the below:Result:
Although the condition is not true, it's taking the wrong flow path.
Please look into this? Thanks.