Add data entered as <script> tag inside <bpmn:scriptTask>

if (is(element, ‘bpmn:ScriptTask’)) {
detailsGroup.entries.push(entryFactory.textBox({
id : ‘script’,
description : ‘Enter your script here’,
label : ‘Script’,
modelProperty : ‘script’,
}));

the modelProperty should be ‘script’, this will add the user input value inside the bpmn:scriptTask tag
example:
<bpmn:scriptTask id=“sid-42396C9C-2A10-4C2D-8BDE-213E63366D2E”>
<bpmn:script > user input value</bpmn:script>
</bpmn:scriptTask>
using textBox will help multiple line scripts.

Hope this helps someone :slightly_smiling_face:

1 Like