cancel
Showing results for 
Search instead for 
Did you mean: 

Complex expressions don't execute in Alfresco activiti web version

iriney
Champ in-the-making
Champ in-the-making

Не работает 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
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

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 &gt; and &lt; in XML, or enclose your conditions in CDATA blocks to avoid issues with reserved characters.