Replies: 2 comments 2 replies
-
Hi
Yes, it is possible, I am working on it
Thanks
…On Tue, Sep 3, 2024 at 10:37 AM ingpconci ***@***.***> wrote:
In the *bpmn-server version 1* the script handler was pluggable.
I've implemented:
appDelegate.scopeEval -->evaluateExpression
appDelegate.scopeJS -->executeScript
to permit the processing of the FEEL expression write in the BPMN file
using the Camunda Modeler
image.png (view on web)
<https://github.com/user-attachments/assets/2dbd1c2b-92e8-40d8-81d7-918ba2c7445e>
`
scopeEval(scope, script: string) {
debug('MyAppDelegate.scopeEval: Starting... scope=', scope, ' script=',
script);
let result;
// remove the = from the init of the script
//
https://docs.camunda.io/docs/components/concepts/expressions/#expressions-vs-static-values
let scriptModif1;
if (script.startsWith("=")) {
scriptModif1 = script.substring(1);
} else {
scriptModif1 = script;
}
// duplicate internal = in the script to permit use ELF espression
debug('MyAppDelegate.scopeEval: step1 removed = from init; scriptModif1:
', scriptModif1);
let scriptModif2;
if (scriptModif1.indexOf("=")) {
scriptModif2 = scriptModif1.replace("=", "==");
}
else {
scriptModif2 = scriptModif1;
}
debug('MyAppDelegate.scopeEval: step2 duplicate = inside the script; scriptModif2: ', scriptModif2);
`
Is it possible to reinsert the possibility of customizing the script
handler?
It is possible to use the the javascript-feel-engine as scriptHandler?
https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/#feelin-javascript-feel-engine
—
Reply to this email directly, view it on GitHub
<#224>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQL5NQ2UEA32EETVAKGPMQDZUXCRNAVCNFSM6AAAAABNSJIQC6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGEZTGMJWGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
New Release coming shortly
Thanks
…________________________________
From: ingpconci ***@***.***>
Sent: Monday, September 23, 2024 5:08 AM
To: bpmnServer/bpmn-server ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [bpmnServer/bpmn-server] ScriptHandler Pluggable to permit use FEEL Expression (Discussion #224)
Hi
Can I help modify the ScriptHandler? I need to update my application with bpmn-server ver 2, but without that modification, my BPMN process doesn't run.
—
Reply to this email directly, view it on GitHub<#224 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC2XVKARN6ADABFLYWP3VWLZX7K75AVCNFSM6AAAAABNSJIQC6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZSGM3TSNI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the bpmn-server version 1 the script handler was pluggable.

I've implemented:
appDelegate.scopeEval -->evaluateExpression
appDelegate.scopeJS -->executeScript
to permit the processing of the FEEL expression write in the BPMN file using the Camunda Modeler
`
scopeEval(scope, script: string) {
debug('MyAppDelegate.scopeEval: Starting... scope=', scope, ' script=', script);
let result;
// remove the = from the init of the script
// https://docs.camunda.io/docs/components/concepts/expressions/#expressions-vs-static-values
let scriptModif1;
if (script.startsWith("=")) {
scriptModif1 = script.substring(1);
} else {
scriptModif1 = script;
}
// duplicate internal = in the script to permit use ELF espression
debug('MyAppDelegate.scopeEval: step1 removed = from init; scriptModif1: ', scriptModif1);
`
Is it possible to reinsert the possibility of customizing the script handler?
It is possible to use the the javascript-feel-engine as scriptHandler?
https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/#feelin-javascript-feel-engine
Beta Was this translation helpful? Give feedback.
All reactions