09-13-2019 09:53 AM
Не работает bpm схема с данным условием на стрелке (flow condition) после выхода из шлюза Exclusive gateway
${document.attributes['EPR/DMS/DMBTR'] < 10000000 && document.attributes['EPR/DMS/DMBTR'] >= 5000000 && document.attributes['EPR/DMS/CONCERN_FLG'] == true} || ${document.attributes['EPR/DMS/DMBTR'] >= 10000000}
При тестировании процесса выводит ошибку:
Error parsing '${document.attributes['EPR/DMS/DMBTR'] < 10000000 \n&& \n(document.attributes['EPR/DMS/DMBTR'] > 5000000 || document.attributes['EPR/DMS/DMBTR'] = 5000000) \n&& document.attributes['EPR/DMS/CONCERN_FLG'] == true} \n|| ${document.attributes['EPR/DMS/DMBTR'] > 10000000 || document.attributes['EPR/DMS/DMBTR'] =10000000}': lexical error at position 143, encountered invalid character '=', expected expression token
09-19-2019 03:54 PM
The error clearly states what is wrong with the expression. You have a = instead of a == in the condition. Now, it looks like your problem might be related to the fact that you are writing the expression in BPMN XML with some kind of tool which does not automatically encode < and > correctly, so they are dropped / lost when the XML is parsed. Try using > and < in XML, or enclose your conditions in CDATA blocks to avoid issues with reserved characters.
Explore our Alfresco products with the links below. Use labels to filter content by product module.