<?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: Expression Evaluation using activiti Expression packages in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11553#M4591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Krish,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activiti-expressions are designed to be evaluated in the process-context (DelegateExecution), so getting a hold of one through API is inpossible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the point of using activiti-expression handling when you're not using it inside activiti process? If you want to resolve espressions based on non-process stuff, you should just use JUEL as a library for that or leverage the JUEL present in the activiti codebase. If you do this, you shouldn't use the ExpressionManager, but create your ow ELResolvers that access the data you want and use these to evaluate the expressions. a couple of pointers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.impl.javax.el.ValueExpression&lt;BR /&gt;org.activiti.engine.impl.javax.el.ExpressionFactory&lt;BR /&gt;&lt;BR /&gt;org.activiti.engine.impl.el.JuelExpression&lt;BR /&gt;org.activiti.engine.impl.el.ExpressionManager&lt;BR /&gt;&lt;BR /&gt;ValueExpression valueExpression = expressionFactory.createValueExpression(parsingElContext, expression, Object.class);&lt;BR /&gt;valueExpression.getValue(elContext);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 11:45:27 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-03-14T11:45:27Z</dc:date>
    <item>
      <title>Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11546#M4584</link>
      <description>Dear AllI am looking for approach for using activiti's expression evaluation packages in my Custom JSF based web application (where I Activiti JARS). What is the best way to call the activiti expression evaluation classes (which interfaces to use?). If anyone have tried this please pass some pointer</description>
      <pubDate>Mon, 14 Mar 2011 05:52:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11546#M4584</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T05:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11547#M4585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at org.activiti.engine.impl.el.JuelExpression and org.activiti.engine.impl.el.ExpressionManager. An expression is first created (parsed) using expression-manager and when needed it's evaluated against an VariableScope (eg. the delegateExecution).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To obtain the expression-manager, use &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ExpressionManager expressionManager = processEngine.getProcessEngineConfiguration().getExpressionManager();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;To parse an expression, use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;expressionManager.createExpression("${myVar + 1}");&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can plug in a custom ExpressionManager, example of this is in ProcessEngineFactoryBean and SpringExpressionManager.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 06:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11547#M4585</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T06:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11548#M4586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Frederik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a ton for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Krish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 07:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11548#M4586</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T07:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11549#M4587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be a big help if you can guide me regarding ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case of using a default process engine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to get expression manager–&amp;gt; create expression–&amp;gt; evaluate expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Krish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 08:16:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11549#M4587</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T08:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11550#M4588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the expressionmanager, cast the ProcessEngine to ProcessEngineImpl and use the code I suggested above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ExpressionManager expressionManager = ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getExpressionManager();&lt;BR /&gt;Expression myEx = expressionManager.createExpression("${myVar + 1}");&lt;BR /&gt;Object result = myEx.getValue(variableScope);&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 08:24:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11550#M4588</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11551#M4589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks gain for the help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 08:33:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11551#M4589</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11552#M4590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more help&amp;nbsp; ::&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to get an handle of DelegateExecution (or create it using API) from outside the Activiti Instance say from a Java class that will pass the parameters to Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Krish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 11:34:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11552#M4590</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T11:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11553#M4591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Krish,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activiti-expressions are designed to be evaluated in the process-context (DelegateExecution), so getting a hold of one through API is inpossible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the point of using activiti-expression handling when you're not using it inside activiti process? If you want to resolve espressions based on non-process stuff, you should just use JUEL as a library for that or leverage the JUEL present in the activiti codebase. If you do this, you shouldn't use the ExpressionManager, but create your ow ELResolvers that access the data you want and use these to evaluate the expressions. a couple of pointers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.impl.javax.el.ValueExpression&lt;BR /&gt;org.activiti.engine.impl.javax.el.ExpressionFactory&lt;BR /&gt;&lt;BR /&gt;org.activiti.engine.impl.el.JuelExpression&lt;BR /&gt;org.activiti.engine.impl.el.ExpressionManager&lt;BR /&gt;&lt;BR /&gt;ValueExpression valueExpression = expressionFactory.createValueExpression(parsingElContext, expression, Object.class);&lt;BR /&gt;valueExpression.getValue(elContext);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 11:45:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11553#M4591</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T11:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11554#M4592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to use JSF EL along with custom EL (the one used in activiti); so that I will be able to populate the JSF based forms outside the activiti engine (albeit with activiti engine based process / task level values ). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In activiti Ftl based froms are used to generate HTML where the engine has an handle to the form at the execution time… however in a JSF based application Activiti engine will not have an handle to a form and hence the requirement of evaluating existing activiti based expression syntax in JSF from from activiti engine run time instance values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest what is the best way forward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;krish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 12:26:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11554#M4592</guid>
      <dc:creator>k_kunti</dc:creator>
      <dc:date>2011-03-14T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Evaluation using activiti Expression packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11555#M4593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you want to render forms in JSF, independent of activiti you should hook an ELResover (EL API, not activiti) into your JSF. This resolver can use the map of variables returned by the API-calls:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;runtimeService.getVariables(processInstance.getId());&lt;BR /&gt;taskService.getVariables(Local)(task.getId());&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 12:33:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-evaluation-using-activiti-expression-packages/m-p/11555#M4593</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T12:33:12Z</dc:date>
    </item>
  </channel>
</rss>

