Skip to content

任务监听器异步执行设置变量值 #6

Description

@DustinNoDusty

自己写了一个任务监听器,里面逻辑大概是这样的:异步执行一个远程http请求并将请求结果写到变量表。在执行的过程中报了一个乐观锁的错误。错误如下:org.flowable.common.engine.api.FlowableOptimisticLockingException: Execution[ id 'a8a2dec8-16f8-11ed-93f0-0242ac120009' ] - activity 'Activity_0zu5ltp' - parent 'a8a2dec2-16f8-11ed-93f0-0242ac120009' was updated by another transaction concurrently。请问这个该怎么避免?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions