Please share a running / prototypical example that clearly shows what you’re trying to achieve, what is working and what is not.
Use our existing starter projects to quickly hack it or share your existing, partial solution on GitHub or via a CodeSandbox. Provide the necessary pointers that allow us to quickly understand where you got stuck.
This way we may be able to help you in a constructive manner.
I am using CustomImplementation for my BPM .
I am having issues in errors.
For example,
When in Camunda scriptTask when we add the implementation the list of errors are removed but in my case I am not able to remove the errors even after adding the custom script prop in the script task
var scriptTaskRequired = function () {
function check(node, reporter) {
if (!is$s(node, "bpmn:ScriptTask")) {
return;
}
// Check if the script property is defined
if (!node.script || node.script.trim().length === 0) {
reporter.report(node.id, "ScriptTask is missing a script definition");
}
}
return annotateRule$s("script-task-required", { check });
};
This is the custom rule for checking if script is there
I have added it in the array of rules
Now whenever I add the script it does not remove the error
I suggest to check whether the property you are validating is the one that you add via UI.
Please share a running / prototypical example that clearly shows what you’re trying to achieve, what is working and what is not.
Use our existing starter projects to quickly hack it or share your existing, partial solution on GitHub or via a CodeSandbox. Provide the necessary pointers that allow us to quickly understand where you got stuck.
This way we may be able to help you in a constructive manner.
sorry for adding here i couldnt find where i could add a new question.
I added extension elements and they work just fine, but my problem is that elemnts that have an extension cant be deleted or moved on the ui. When i delte them i get this error:
unhandled error in event listener TypeError: Cannot read properties of undefined (reading ‘id’)
at eval (UnclaimIdBehavior.js:41:1)
at invokeFunction (EventBus.js:614:1)
at EventBus._invokeListener (EventBus.js:457:1)
at EventBus._invokeListeners (EventBus.js:431:1)
at EventBus.fire (EventBus.js:379:1)
at CommandStack._fire (CommandStack.js:395:1)
at CommandStack._internalExecute (CommandStack.js:435:1)
at CommandStack.execute (CommandStack.js:186:1)
at Modeling.removeShape (Modeling.js:537:1)
at eval (DeleteElementsHandler.js:40:1)
EventBus._invokeListener @ EventBus.js:471
EventBus.js:473 Uncaught TypeError: Cannot read properties of undefined (reading ‘id’)
at eval (UnclaimIdBehavior.js:41:1)
at invokeFunction (EventBus.js:614:1)
at EventBus._invokeListener (EventBus.js:457:1)
at EventBus._invokeListeners (EventBus.js:431:1)
at EventBus.fire (EventBus.js:379:1)
at CommandStack._fire (CommandStack.js:395:1)
at CommandStack._internalExecute (CommandStack.js:435:1)
at CommandStack.execute (CommandStack.js:186:1)
at Modeling.removeShape (Modeling.js:537:1)
at eval (DeleteElementsHandler.js:40:1)