Inbound Email Connector Doesn't Start Process Instance but mail triggered

When I Send the Email to the Respective Inbox i have configured through Imap server…

myconfiguration to move the sent mail to another folder …it works…

But the problem is the Email Message Start Event Connector Doesn’t Start the Process Instance.

and some of my colleagues had an issue. If they give an activation condition, it doesn’t work. If not, process instance starts.
the condition was given as per the camunda documentation

this is the configuration we tried

and also how to get the message ID from the email I configured. here imap server i used is imap.gmail.com , port 993, Protocol is TLS

1 Like

Hello @abishek,

There is indeed a mistake in the documentation which we will correct as soon as possible.

Could you try using subject = "urgent" instead of response.subject = "urgent"?

Thanks a lot.

Hi @MathiasVandaele thank u for your response. But it didnt work.

and I want to know why the process instance doesn’t start for the first scenerio; that is the one that bothers me a lot.

Once again, I will tell the scenerio that once mail was sent in the inbox, the corresponding mail was transferred to another folder, but it does not start the process instance.i mean, there is no evidence of mail trigger in camunda operate was found.

Hello @abishek,

Is the problem that you are experiencing as follows:

  • The process is deployed.
  • The mail is correctly transferred into the specified folder in the BPMN.
  • No process can be found in Operate.

Is that correct?

Could you provide your BPMN file so I can analyze it further?

Thanks!

Hello @MathiasVandaele ,

here is the xml file i have configured.

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

<bpmn:definitions xmlns:bpmn=“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:zeebe=“http://camunda.org/schema/zeebe/1.0” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” xmlns:modeler=“http://camunda.org/schema/modeler/1.0” id=“Definitions_1ldpwm1” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“5.32.0” modeler:executionPlatform=“Camunda Cloud” modeler:executionPlatformVersion=“8.6.0”>
<bpmn:process id=“EmailInBound” name=“EmailInBound” isExecutable=“true”>
<bpmn:startEvent id=“emailStartEvent” name=“Email Start Event” zeebe:modelerTemplate=“io.camunda.connectors.inbound.EmailMessageStart.v1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MC4xMDAyMTQgMS42NzU0OSAtMC4wMjA1MDc4IDEuOTY2OTQgLTAuMDIwNTA3OCAyLjI3MDgzVjExLjQzNzVDLTAuMDIwNTA3OCAxMS43NDE0IDAuMTAwMjE0IDEyLjAzMjggMC4zMTUwOTkgMTIuMjQ3N0MwLjUyOTk4NCAxMi40NjI2IDAuODIxNDMyIDEyLjU4MzMgMS4xMjUzMyAxMi41ODMzSDMuOTcyVjExLjQzNzVaTTEzLjYxNDkgMi4yNzA4M0w4LjAwMDMyIDYuMTU1MjFMMi4zODU3NCAyLjI3MDgzSDEzLjYxNDlaIiBmaWxsPSIjRkM1RDBEIi8+CjxwYXRoIGQ9Ik00LjI4MjEgOS45NTM2NUw2LjMzMzE0IDEyLjAxMDRMNC4yNzYzNyAxNC4wNjcyTDUuMDg5OTEgMTQuODc1TDcuOTU0NDkgMTIuMDEwNEw1LjA4OTkxIDkuMTQ1ODNMNC4yODIxIDkuOTUzNjVaIiBmaWxsPSJibGFjayIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzkwXzI0MjAiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==”>
bpmn:extensionElements
zeebe:properties
<zeebe:property name=“inbound.type” value=“io.camunda:connector-email-inbound:1” />
<zeebe:property name=“authentication.type” value=“simple” />
<zeebe:property name=“authentication.username” value="example@gmail.com" />
<zeebe:property name=“authentication.password” value=“*******************” />
<zeebe:property name=“data.imapConfig.imapHost” value=“imap.gmail.com” />
<zeebe:property name=“data.imapConfig.imapPort” value=“993” />
<zeebe:property name=“data.imapConfig.imapCryptographicProtocol” value=“TLS” />
<zeebe:property name=“data.pollingWaitTime” value=“PT20S” />
<zeebe:property name=“data.pollingConfigDiscriminator” value=“unseenPollingConfig” />
<zeebe:property name=“data.pollingConfig.handlingStrategy” value=“MOVE” />
<zeebe:property name=“data.pollingConfig.targetFolder” value=“camunda” />
<zeebe:property name=“consumeUnmatchedEvents” value=“true” />
<zeebe:property name=“correlationRequired” value=“notRequired” />
<zeebe:property name=“deduplicationModeManualFlag” value=“false” />
<zeebe:property name=“deduplicationMode” value=“AUTO” />
<zeebe:property name=“resultVariable” />
<zeebe:property name=“resultExpression” />
</zeebe:properties>
</bpmn:extensionElements>
bpmn:outgoingFlow_0qoa5dg</bpmn:outgoing>
<bpmn:messageEventDefinition id=“MessageEventDefinition_127ltpt” messageRef=“Message_0erdgns” />
</bpmn:startEvent>
<bpmn:endEvent id=“endEvent” name=“EndEvent”>
bpmn:incomingFlow_0qoa5dg</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“Flow_0qoa5dg” sourceRef=“emailStartEvent” targetRef=“endEvent” />
</bpmn:process>
<bpmn:message id=“Message_0erdgns” name=“307316e5-25ab-485d-b373-07eb2a59eb74” zeebe:modelerTemplate=“io.camunda.connectors.inbound.EmailMessageStart.v1” />
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“EmailInBound”>
<bpmndi:BPMNShape id=“Event_0vr2jsn_di” bpmnElement=“emailStartEvent”>
<dc:Bounds x=“182” y=“82” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“160” y=“125” width=“86” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1bdcxdx_di” bpmnElement=“endEvent”>
<dc:Bounds x=“442” y=“82” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“436” y=“125” width=“49” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“Flow_0qoa5dg_di” bpmnElement=“Flow_0qoa5dg”>
<di:waypoint x=“218” y=“100” />
<di:waypoint x=“442” y=“100” />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

image

Thanks

Hey @abishek

Could you please upload your BPMN? Camunda modeler can not parse it correctly.

Thanks!

Hi @MathiasVandaele ,

is this the BPMN You are saying…?

EmailInbound.bpmn (5.3 KB)

hope it works

Hello @abishek,

I have tested your example, and the process is completing normally. When you are in Operate, be sure to have all finished instances checked.
image

Let me know :smile:
Thanks

Hi @MathiasVandaele ,

It didn’t show up.I have no such instance running like that.
It doesn’t work yet.

And also, how do I get the attachment available in the mail? Is there any possibility?

Thanks a lot.

Hi @abishek

So the instance is running, the email is properly moved to the camunda folder, but no process instance shows up in Operate?

Could you send me a screenshot of your Operate page?

Thanks