我在请求中使用taskVariables查询activiti-rest,如下所示:* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger pin code: 294-294-951
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\site-packages\werkzeug\serving.py", line 670, in inner
fd=fd)
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\site-packages\werkzeug\serving.py", line 564, in make_server
passthrough_errors, ssl_context, fd=fd)
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\site-packages\werkzeug\serving.py", line 474, in __init__
socket.SOCK_STREAM)
File "C:\Users\kdalal\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 460, in fromfd
nfd = dup(fd)
OSError: [WinError 10038] An operation was attempted on something that is not a socket
。我也可以与受让人等过滤。如何将结果限制在一定时间?我需要三种查询:
我需要这些用于运行时和历史任务。我可以添加一个新的 myCreateTime taskVariable,但我不知道如何追溯现有任务,这似乎很愚蠢。
答案 0 :(得分:1)
您是否尝试过使用任务历史记录查询:
https://www.activiti.org/userguide/#restHistoricTaskInstancesGet
添加taskCreatedOn,taskCreatedBefore和taskCreatedAfter过滤器?
格雷格