如何在流程中完成用户任务?
I'm using flowable and I have this process:
I would like to know, how can I programatically end Task A and then invoke Task B? Is there a way to do that?
P.S. Sorry, very new to using Flowable!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了以编程方式完成 Flowable 中的任务,您可以使用
TaskService
。您可以通过
TaskService#createTaskQuery
使用TaskQuery
查询任务,然后使用TaskService#complete(taskId, Variables)
例如
In order to programatically complete a task in Flowable you can use the
TaskService
.You can query for a task using the
TaskQuery
throughTaskService#createTaskQuery
and then useTaskService#complete(taskId, variables)
e.g.
continue
If you embed flowable engine in your spring boot, you will use flowable SDK to update status (see Filip's reply)
If you deploy flowable as standalone server, you will use REST API to update status (See horelvis' reply)