In my model i have a send task like below and configured connector to send email. But i was getting below parsing errors while deploying through rest api. Any clues why its not considering connectors?
[ExceptionHandler]e[0;39m e[31m[toResponse]e[0;39m @ 54 : e[32morg.camunda.bpm.engine.ProcessEngineException: ENGINE-09005 Could not parse BPMN process. Errors:
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | test.bpmn | line 37 | column 133
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | test.bpmn | line 72 | column 94
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | test.bpmn | line 94 | column 92
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionDuringParsing(EngineUtilLogger.java:62)
at org.camunda.bpm.engine.impl.util.xml.Parse.throwExceptionForErrors(Parse.java:208)
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:272)
e[1;31m[org.camunda.bpm.engine.context]e[0;39m e[31m[logError]e[0;39m @ 160 : e[32mENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | orderprocess.bpmn | line 8 | column 82
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | orderprocess.bpmn | line 35 | column 81e[0;39m
org.camunda.bpm.engine.ProcessEngineException: ENGINE-09005 Could not parse BPMN process. Errors:
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | orderprocess.bpmn | line 8 | column 82
One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on sendTask. | orderprocess.bpmn | line 35 | column 81
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionDuringParsing(EngineUtilLogger.java:62)
at org.camunda.bpm.engine.impl.util.xml.Parse.throwExceptionForErrors(Parse.java:208)
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:272)
When i debug, i got null for all the below variables.
I think you mean that it allows for connectors for SendTasks and ServiceTasks. Receive tasks have no implementations requirements.
So, i gave it a try and didn’t have any problems using a connector with a SendTask - i was able to deploy and run it without any issues. so maybe that isn’t the problem you’re having.
What version of the engine are you using?
The one you uploaded deployed correctly - but i built my own just to test that connectors in general work on send tasks.
The problem could be the mail plugin
Problem in mail plugin means, it should throw the exception during the execution of the SendTask activity. But I got the exception while deploying the process itself.
e[1;31m[org.camunda.bpm.engine.context]e[0;39m e[31m[logError]e[0;39m @ 160 : e[32mENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:
* One of the attributes 'class', 'delegateExpression', 'type', or 'expression' is mandatory on sendTask. | orderprocess.bpmn | line 8 | column 109
* One of the attributes 'class', 'delegateExpression', 'type', or 'expression' is mandatory on sendTask. | orderprocess.bpmn | line 35 | column 108e[0;39m
@Ingo_Richtsmeier i’m not sure how you solved the above issue. When i woke up next day morning, i found an idea and it worked, solved in 2 mins
Here’s my solution to the problem. Not sure why i didn’t thought about the below configuration Finally i was able to deploy the process with connectors config in SendTask