0

我使用以下工作流程我得到以下异常:

org.activiti.engine.ActivitiException:此活动不接受信号

我在以下工作流程中哪里出错了。

实际上,在我的工作流程中,任务转到一个组,该组及时完成任务,然后转到下一组,如果没有邮件,则发送给未及时完成任务的组的经理。

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.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.activiti.org/test">
<process id="mailFlow" name="My process" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="true">
        <script>out:println "This Category Name:"+incidentcategory;</script>
    </scriptTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="scripttask1">
        <conditionExpression xsi:type="tFormalExpression"><![CDATA[${incidentcategory=='BAT'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask1" name="User Task A" activiti:candidateGroups="Group A"></userTask>
    <sequenceFlow id="flow2" sourceRef="scripttask1" targetRef="usertask1"></sequenceFlow>

    <boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="usertask1" cancelActivity="true">
        <timerEventDefinition>
            <timeDuration>PT40S</timeDuration>
        </timerEventDefinition>
    </boundaryEvent>

    <serviceTask id="mailtask1" name="Mail Task A" activiti:type="mail">
        <extensionElements>
            <activiti:field name="to">
                <activiti:string>xxxx@gmail.com</activiti:string>
            </activiti:field>
            <activiti:field name="html">
                <activiti:string>&lt;html&gt;
                &lt;body&gt;
                Hello ,&lt;br/&gt;&lt;br/&gt;
                This from Mail Task A&lt;br/&gt;&lt;br/&gt;
                Your problem was solved.&lt;br/&gt;&lt;br/&gt;
                Kind regards,&lt;br/&gt;
                Airtel ltd.
                &lt;/body&gt;
                &lt;/html&gt;</activiti:string>
            </activiti:field>
            <activiti:field name="subject">
                <activiti:string>Task Pending from Group A</activiti:string>
            </activiti:field>
        </extensionElements>
    </serviceTask>

    <sequenceFlow id="flow3" sourceRef="usertask1" targetRef="mailtask1"></sequenceFlow>
    <userTask id="usertask2" name="User Task B" activiti:candidateGroups="Group B"></userTask>

    <boundaryEvent id="boundarytimer2" name="Timer" attachedToRef="usertask2" cancelActivity="true">
        <timerEventDefinition>
            <timeDuration>PT20S</timeDuration>
        </timerEventDefinition>
    </boundaryEvent>

    <serviceTask id="mailtask2" name="Mail Task B" activiti:type="mail">
        <extensionElements>
            <activiti:field name="to">
                <activiti:string>xxxx@gmail.com</activiti:string>
            </activiti:field>
            <activiti:field name="html">
                <activiti:string>&lt;html&gt;
                &lt;body&gt;
                Hello ,&lt;br/&gt;&lt;br/&gt;
                This from Mail Task B&lt;br/&gt;&lt;br/&gt;
                Your problem was solved.&lt;br/&gt;&lt;br/&gt;
                Kind regards,&lt;br/&gt;
                Airtel ltd.
                &lt;/body&gt;
                &lt;/html&gt;</activiti:string>
            </activiti:field>
            <activiti:field name="subject">
                <activiti:string>Task Pending from Group B</activiti:string>
            </activiti:field>
        </extensionElements>
    </serviceTask>

    <sequenceFlow id="flow5" sourceRef="boundarytimer2" targetRef="mailtask2"></sequenceFlow>
    <userTask id="usertask3" name="User Task C" activiti:candidateGroups="Group C"></userTask>

    <serviceTask id="mailtask3" name="Mail Task C" activiti:type="mail">
        <extensionElements>
            <activiti:field name="to">
                <activiti:string>xxxx@gmail.com</activiti:string>
            </activiti:field>
            <activiti:field name="html">
                <activiti:string>&lt;html&gt;
                &lt;body&gt;
                Hello ,&lt;br/&gt;&lt;br/&gt;
                This from Mail Task C&lt;br/&gt;&lt;br/&gt;
                Your problem was solved.&lt;br/&gt;&lt;br/&gt;
                Kind regards,&lt;br/&gt;
                Airtel ltd.
                &lt;/body&gt;
                &lt;/html&gt;</activiti:string>
            </activiti:field>
            <activiti:field name="subject">
                <activiti:string>Task Completed from Group C</activiti:string>
            </activiti:field>
        </extensionElements>
    </serviceTask>

    <sequenceFlow id="flow7" sourceRef="usertask3" targetRef="mailtask3"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow10" sourceRef="mailtask3" targetRef="endevent1"></sequenceFlow>
    <sequenceFlow id="flow11" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
    <sequenceFlow id="flow12" sourceRef="usertask2" targetRef="usertask3"></sequenceFlow>
</process>
4

1 回答 1

0

对不起,在我的工作流程中,我在第一个用户任务 A 计时器边界事件时犯了一个错误。实际上我应该从用户任务 A 时间边界事件中给出 ===> 邮件任务 A,但我犯了一个错误,我从用户任务 A = ==> 在拖动序列时发送任务 A。现在我的问题解决了。但是有任何情况 org.activiti.engine.ActivitiException: 这个活动不接受信号这个异常发生你能告诉我。

于 2013-05-17T05:30:52.040 回答