<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MVEL error in Workflow transition in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/mvel-error-in-workflow-transition/m-p/314649#M1650</link>
    <description>&lt;P&gt;If you want to use a conditional in a chain you can do something like:&lt;/P&gt;
&lt;P&gt;Document &amp;gt; Document.FollowLifeCycleTransition:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{
Document.lifeCycle == 'stateA' ? 'to_transition_nameA' : 
Document.lifeCycle == 'stateB' ? 'to_transition_nameB' :
Document.lifeCycle == 'stateC' ? 'to_transition_nameC'
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please provide screenshots / code snippets if you require more advice&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 22:44:21 GMT</pubDate>
    <dc:creator>Jackie_A</dc:creator>
    <dc:date>2018-11-28T22:44:21Z</dc:date>
    <item>
      <title>MVEL error in Workflow transition</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mvel-error-in-workflow-transition/m-p/314648#M1649</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I begin in Nuxeo workflow use and I probably have a issue in my transition condition, but I don't understand where (I'm a noob also in MVEL)&lt;/P&gt;
&lt;P&gt;In a task, I have 2  transitions, and each calls an automation chain (Tchange only the state of the circle of life).&lt;/P&gt;
&lt;P&gt;In the first, I call a Automation Chain when a document propertie content is not empty. My condition test is :
@{Document.getProperty("CAN_courrierEntrant:DestinataireATraiter") &amp;lt;&amp;gt;empty}&lt;/P&gt;
&lt;P&gt;The second condition is the contrary,&lt;BR /&gt; /&amp;gt;
@{Document.getProperty("CAN_courrierEntrant:DestinataireATraiter") ==empty}&lt;/P&gt;
&lt;P&gt;I think I have a syntax error in my condition but I don't see where.&lt;/P&gt;
&lt;P&gt;Do you have an idea ?&lt;/P&gt;
&lt;P&gt;Thank you !!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 07:39:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mvel-error-in-workflow-transition/m-p/314648#M1649</guid>
      <dc:creator>Charp_Aton</dc:creator>
      <dc:date>2018-10-05T07:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: MVEL error in Workflow transition</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mvel-error-in-workflow-transition/m-p/314649#M1650</link>
      <description>&lt;P&gt;If you want to use a conditional in a chain you can do something like:&lt;/P&gt;
&lt;P&gt;Document &amp;gt; Document.FollowLifeCycleTransition:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{
Document.lifeCycle == 'stateA' ? 'to_transition_nameA' : 
Document.lifeCycle == 'stateB' ? 'to_transition_nameB' :
Document.lifeCycle == 'stateC' ? 'to_transition_nameC'
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please provide screenshots / code snippets if you require more advice&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 22:44:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mvel-error-in-workflow-transition/m-p/314649#M1650</guid>
      <dc:creator>Jackie_A</dc:creator>
      <dc:date>2018-11-28T22:44:21Z</dc:date>
    </item>
  </channel>
</rss>

