05-08-2019 05:01 PM
I followed this tutorial https://docs.wso2.com/display/EI640/Working+with+Mail+Tasks. I can deploy a test process without a mail task and all works 100% until I add a MailTask. As soon as I add the mail task the bar file will not deploy and I get error. If I look in the log I don't see an error that explains why. Just that the parser has an error.
I made this test process and it also fails
<?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:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsmgdi="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.activiti.org/test">
<process id="myProcess" name="My process" isExecutable="true">
<startEvent id="startevent1" name="Start"></startEvent>
<endEvent id="endevent1" name="End"></endEvent>
<serviceTask id="mailtask1" name="Mail Task" activiti:type="mail">
<extensionElements>
<activiti:field name="to">
<activiti:string><![CDATA[jaco@jdphotography.co.za]]></activiti:string>
</activiti:field>
<activiti:field name="from">
<activiti:string><![CDATA[saweddingtof@gmail.com]]></activiti:string>
</activiti:field>
<activiti:field name="subject">
<activiti:string><![CDATA[Test]]></activiti:string>
</activiti:field>
<activiti:field name="html">
<activiti:string><![CDATA[ ]]></activiti:string>
</activiti:field>
<activiti:field name="text">
<activiti:string><![CDATA[Test]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="mailtask1"></sequenceFlow>
<sequenceFlow id="flow2" sourceRef="mailtask1" targetRef="endevent1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
<bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35.0" width="35.0" x="400.0" y="290.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35.0" width="35.0" x="680.0" y="290.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="mailtask1" id="BPMNShape_mailtask1">
<omgdc:Bounds height="55.0" width="105.0" x="510.0" y="280.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="435.0" y="307.0"></omgdi:waypoint>
<omgdi:waypoint x="510.0" y="307.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="615.0" y="307.0"></omgdi:waypoint>
<omgdi:waypoint x="680.0" y="307.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Here is the error from the log.
TID[-1234] [BPS] [2019-05-07 23:15:05,331] ERROR {org.wso2.carbon.bpmn.core.deployment.TenantRepository} - Failed to deploy the archive: Email.bar org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:137) org.activiti.engine.impl.bpmn.helper.ClassDelegate.defaultInstantiateDelegate(ClassDelegate.java:242) org.activiti.engine.impl.bpmn.helper.ClassDelegate.defaultInstantiateDelegate(ClassDelegate.java:238) org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory.createMailActivityBehavior(DefaultActivityBehaviorFactory.java:185) org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory.createMailActivityBehavior(DefaultActivityBehaviorFactory.java:176) org.activiti.engine.impl.bpmn.parser.handler.ServiceTaskParseHandler.executeParse(ServiceTaskParseHandler.java:51) org.activiti.engine.impl.bpmn.parser.handler.ServiceTaskParseHandler.executeParse(ServiceTaskParseHandler.java:32) org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:81) org.activiti.engine.impl.bpmn.parser.handler.AbstractFlowNodeBpmnParseHandler.parse(AbstractFlowNodeBpmnParseHandler.java:27) org.activiti.engine.impl.bpmn.parser.handler.AbstractActivityBpmnParseHandler.parse(AbstractActivityBpmnParseHandler.java:36) org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:79) org.activiti.engine.impl.bpmn.parser.BpmnParse.processFlowElements(BpmnParse.java:433) org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.transformProcess(ProcessParseHandler.java:88) org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:49) org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:35) org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:81) org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:79) org.activiti.engine.impl.bpmn.parser.BpmnParse.transformProcessDefinitions(BpmnParse.java:400) org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:233) org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:136) org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:58) org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:106) org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:37) org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24) org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57) org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40) org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35) org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:79) org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:156) org.wso2.carbon.bpmn.core.deployment.TenantRepository.deploy(TenantRepository.java:202) org.wso2.carbon.bpmn.core.deployment.BPMNDeployer.deploy(BPMNDeployer.java:106) org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371) org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59) org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67) org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93) org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)
What do I need to do to get a mail task working ?
05-15-2019 08:06 AM
I got it working. The jar files where in the wrong place.
05-10-2019 07:17 AM
Any help with this simple issue? Why does the mailtask not deploy ?
05-15-2019 08:06 AM
I got it working. The jar files where in the wrong place.
Explore our Alfresco products with the links below. Use labels to filter content by product module.