簡體   English   中英

Activiti中的用戶任務上的邊界事件未觸發

[英]Boundary Event on User Task in Activiti not triggerred

我正在使用Activiti BPM實施簡單的工作流程。 此工作流程向用戶發送電子郵件,並等待用戶反饋。 如果24小時未收到反饋,它將再次發送電子郵件並等待響應。

我這樣使用邊界事件:

      <boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="userTask" cancelActivity="true">
    <timerEventDefinition>
      <timeDuration>PT24H</timeDuration>
    </timerEventDefinition>
  </boundaryEvent>

我可以看到在ACT_RU_JOB表中創建的計時器作業。 但是,不會觸發此作業。

可能您沒有在Activiti配置中設置jobExecutorActivate=true

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
        <property name="dataSource" ref="dataSource" />
        <property name="transactionManager" ref="transactionManager" />
        <property name="databaseSchemaUpdate" value="true" />
        <property name="jobExecutorActivate" value="true" />
        <property name="history" value="activity"/>
</bean>

希望能幫助到你。

From activiti 6.0.0 Version 
need to use springConfiguration.setAsyncExecutorActivate(true);
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
        <property name="dataSource" ref="dataSource" />
        <property name="transactionManager" ref="transactionManager" />
        <property name="databaseSchemaUpdate" value="true" />
        <property name="asyncExecutorActivate" value="true" />
        <property name="history" value="activity"/>
</bean>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM