简体   繁体   中英

Camunda: find process instance by variable value

是否可以按照以下请求中所述通过Camunda REST API通过流程实例变量值找到流程实例: https ://groups.google.com/forum/#!topic/camunda-bpm-dev/gJfXkbkY8fc(上述问题)是从2014年开始的,也许现在有一种标准的方法?)

Looks like this is supported now:

GET /process-instance

variables: Only include process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form key_operator_value. key is the variable name, operator is the comparison operator to be used and value the variable value.

There is also a POST endpoint which allows to express the filtering more cleanly:

POST /process-instance

variables: A JSON array to only include process instances that have variables with certain values. The array consists of objects with the three properties name, operator and value. name (String) is the variable name, operator (String) is the comparison operator to be used and value the variable value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM