Change escalation email text

Hi

I am using a User task and it sends an escalation email. Is there any way to change the default mail text?

Thanks

Hi,

I might not understand exactly what you mean by “it” sends an escalation email, but I tried the following model. I use a Mail task, and there it is easy to customize the text of the mail (note that there are text, html, textVar and htmlVar and the last 2 might be what you are looking for when you say “change the default”).

Cheers,

Olivier

Here is where to change the text:

Here is the xml for my model:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef" exporter="Flowable Open Source Modeler" exporterVersion="6.7.1-SNAPSHOT">
  <process id="process-escalation-mail" name="Escalation Mail" isExecutable="true">
    <startEvent id="startEvent1" flowable:formFieldValidation="true"></startEvent>
    <userTask id="sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92" name="Do this quickly" flowable:assignee="$INITIATOR" flowable:formFieldValidation="true">
      <extensionElements>
        <modeler:activiti-idm-initiator xmlns:modeler="http://flowable.org/modeler"><![CDATA[true]]></modeler:activiti-idm-initiator>
      </extensionElements>
    </userTask>
    <boundaryEvent id="sid-F59B3882-9D42-49FB-BCA7-1F93E1A0565F" attachedToRef="sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92" cancelActivity="true">
      <timerEventDefinition>
        <timeDuration>PT10S</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
    <endEvent id="sid-D0B13003-D8DB-431D-A6DA-F19EE25F4A79"></endEvent>
    <sequenceFlow id="sid-7593872B-9D7A-48A1-92B9-312EDC57E82F" sourceRef="sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92" targetRef="sid-D0B13003-D8DB-431D-A6DA-F19EE25F4A79"></sequenceFlow>
    <serviceTask id="sid-F7E8CA8E-A2A9-459A-8A33-FAA0A4EF96DC" name="You were not fast enough!" flowable:type="mail">
      <extensionElements>
        <flowable:field name="to">
          <flowable:string><![CDATA[olivier@avalia.systems]]></flowable:string>
        </flowable:field>
        <flowable:field name="subject">
          <flowable:string><![CDATA[Too bad... you missed a task]]></flowable:string>
        </flowable:field>
        <flowable:field name="text">
          <flowable:string><![CDATA[Just to let you know that Flowable expected you to react faster.]]></flowable:string>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sid-2CAC36DC-ACAE-43FC-8024-D0C8FA648CC5" sourceRef="sid-F59B3882-9D42-49FB-BCA7-1F93E1A0565F" targetRef="sid-F7E8CA8E-A2A9-459A-8A33-FAA0A4EF96DC"></sequenceFlow>
    <sequenceFlow id="sid-CE376550-07FB-4BC0-A0EF-69D05EB5D5CB" sourceRef="sid-F7E8CA8E-A2A9-459A-8A33-FAA0A4EF96DC" targetRef="sid-D0B13003-D8DB-431D-A6DA-F19EE25F4A79"></sequenceFlow>
    <sequenceFlow id="sid-0EEEB20F-7877-43FF-938C-013366014A11" sourceRef="startEvent1" targetRef="sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process-escalation-mail">
    <bpmndi:BPMNPlane bpmnElement="process-escalation-mail" id="BPMNPlane_process-escalation-mail">
      <bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
        <omgdc:Bounds height="30.0" width="30.0" x="100.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92" id="BPMNShape_sid-3EF1D2CF-88D8-4EAF-A732-DD05D8F16F92">
        <omgdc:Bounds height="80.0" width="100.0" x="165.0" y="138.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-F59B3882-9D42-49FB-BCA7-1F93E1A0565F" id="BPMNShape_sid-F59B3882-9D42-49FB-BCA7-1F93E1A0565F">
        <omgdc:Bounds height="31.0" width="31.0" x="220.45258698137377" y="203.00833483065594"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-D0B13003-D8DB-431D-A6DA-F19EE25F4A79" id="BPMNShape_sid-D0B13003-D8DB-431D-A6DA-F19EE25F4A79">
        <omgdc:Bounds height="28.0" width="28.0" x="435.0" y="164.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-F7E8CA8E-A2A9-459A-8A33-FAA0A4EF96DC" id="BPMNShape_sid-F7E8CA8E-A2A9-459A-8A33-FAA0A4EF96DC">
        <omgdc:Bounds height="80.0" width="100.0" x="285.0" y="270.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-CE376550-07FB-4BC0-A0EF-69D05EB5D5CB" id="BPMNEdge_sid-CE376550-07FB-4BC0-A0EF-69D05EB5D5CB" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
        <omgdi:waypoint x="384.94999999999595" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="449.0" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="449.0" y="191.94992979994683"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7593872B-9D7A-48A1-92B9-312EDC57E82F" id="BPMNEdge_sid-7593872B-9D7A-48A1-92B9-312EDC57E82F" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
        <omgdi:waypoint x="264.94999999992734" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="435.0" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-0EEEB20F-7877-43FF-938C-013366014A11" id="BPMNEdge_sid-0EEEB20F-7877-43FF-938C-013366014A11" flowable:sourceDockerX="15.0" flowable:sourceDockerY="15.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
        <omgdi:waypoint x="129.94999817301806" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="164.999999999925" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-2CAC36DC-ACAE-43FC-8024-D0C8FA648CC5" id="BPMNEdge_sid-2CAC36DC-ACAE-43FC-8024-D0C8FA648CC5" flowable:sourceDockerX="16.0" flowable:sourceDockerY="16.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
        <omgdi:waypoint x="236.45258698137377" y="234.95833247674446"></omgdi:waypoint>
        <omgdi:waypoint x="236.45258698137377" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="285.0" y="310.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
1 Like