Camunda Email Integration

Hi,

Good day!

I’ve created a process wherein when the usertask is assigned, an email will be sent to the assignee. But upon starting the process I’ve encountered the error below:


Screenshot 2022-04-19 125554
Screenshot 2022-04-19 125634

Can you give more details about your setup?

  • Version of Camunda that you’re using
  • How you’re deploying the process exactly.
  • Upload the BPMN file if you can.

Hi @Niall,

I’m using Camunda Platform 7.16.5 and deploying the process using Camunda Modeler.

I can’t upload the BPMN file but here’s the content of the BPMN file.

<?xml version="1.0" encoding="UTF-8"?>

<bpmn2:definitions xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:camunda=“http://camunda.org/schema/1.0/bpmn” xmlns:bpmn2=“http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:bpmndi=“http://www.omg.org/spec/BPMN/20100524/DI” xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” id="_WQ94EDiXEeOUqrZRxKiUIA" targetNamespace=“The Universal Process Orchestrator | Camunda” exporter=“Camunda Modeler” exporterVersion=“5.0.0-nightly.20220223” xsi:schemaLocation=“http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd”>
<bpmn2:process id=“TaskAssignmentEmail” name=“Task Assignment Email” isExecutable=“true”>
<bpmn2:startEvent id=“StartEvent_1” name=“Start Event”>
bpmn2:outgoingSequenceFlow_1</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id=“SequenceFlow_1” sourceRef=“StartEvent_1” targetRef=“UserTask_1” />
<bpmn2:userTask id=“UserTask_1” name=“do something” camunda:formKey=“embedded:deployment:do.html” camunda:assignee=“demo”>
bpmn2:extensionElements
<camunda:taskListener class=“org.example.my_process_app.TaskAssignmentListener” event=“assignment” />
</bpmn2:extensionElements>
bpmn2:incomingSequenceFlow_1</bpmn2:incoming>
bpmn2:outgoingSequenceFlow_5</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:sequenceFlow id=“SequenceFlow_5” name="" sourceRef=“UserTask_1” targetRef=“EndEvent_2” />
<bpmn2:endEvent id=“EndEvent_2” name=“End Event”>
bpmn2:incomingSequenceFlow_5</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram id=“BPMNDiagram_1” name=“Task Assignment Email”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“TaskAssignmentEmail”>
<bpmndi:BPMNEdge id=“BPMNEdge_SequenceFlow_5” bpmnElement=“SequenceFlow_5” sourceElement="_BPMNShape_UserTask_2" targetElement="_BPMNShape_EndEvent_10">
<di:waypoint x=“364” y=“125” />
<di:waypoint x=“403” y=“125” />
bpmndi:BPMNLabel
<dc:Bounds x=“263” y=“75” width=“6” height=“6” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“BPMNEdge_SequenceFlow_1” bpmnElement=“SequenceFlow_1” sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_UserTask_2">
<di:waypoint x=“203” y=“125” />
<di:waypoint x=“264” y=“125” />
bpmndi:BPMNLabel
<dc:Bounds x=“108” y=“75” width=“0” height=“0” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement=“StartEvent_1”>
<dc:Bounds x=“167” y=“107” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“158” y=“143” width=“55” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_UserTask_2" bpmnElement=“UserTask_1”>
<dc:Bounds x=“264” y=“85” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_10" bpmnElement=“EndEvent_2”>
<dc:Bounds x=“403” y=“107” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“396” y=“148” width=“51” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

How do you deploy the Java class?

I exported the java project into a JAR file and paste the JAR file on the Camunda\configuration\userlib directory.