Не работает 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
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.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.