简体   繁体   English

Camunda:按变量值查找流程实例

[英]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_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端点,可以更清楚地表达过滤条件:

POST /process-instance

variables: A JSON array to only include process instances that have variables with certain values. 变量:一个JSON数组,仅包括具有带有某些值的变量的流程实例。 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. 名称(字符串)是变量名称,运算符(字符串)是要使用的比较运算符,其值是变量值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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