<?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 how to evaluate with UelExpressionCondition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88903#M60369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i want to get the next node from Transition, but the Transition is exclusiveGateway,so i want to get the UelExpressionCondition from the Transition and get the evaluate result using UelExpressionCondition.evaluate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF0000;"&gt;code:&lt;BR /&gt;List&amp;lt;ActivityImpl&amp;gt; activitiList = new ArrayList&amp;lt;ActivityImpl&amp;gt;();&lt;BR /&gt;TaskEntity taskEntity = (TaskEntity) taskService.createTaskQuery().taskId("202").singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;String processDefinitionId = taskEntity.getProcessDefinitionId();&lt;BR /&gt;activitiList = (List&amp;lt;ActivityImpl&amp;gt;) ((RepositoryServiceImpl)repositoryService).getDeployedProcessDefinition(processDefinitionId).getActivities();&lt;BR /&gt;ExecutionEntity executionEntity = (ExecutionEntity) runtimeService.createExecutionQuery().executionId(taskEntity.getExecutionId()).singleResult();//执行实例&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;String activitiId = executionEntity.getActivityId();&lt;BR /&gt;for(ActivityImpl activityImpl : activitiList) {&lt;BR /&gt;&amp;nbsp; if(activitiId.equals(activityImpl.getId())) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;PvmTransition&amp;gt; transitionImpls = activityImpl.getOutgoingTransitions();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i = 0; i &amp;lt; transitionImpls.size(); i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TransitionImpl transitionImpl = (TransitionImpl) transitionImpls.get(i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(transitionImpl.getDestination().getProperty("type") != null &amp;amp;&amp;amp; "exclusiveGateway".equals(transitionImpl.getDestination().getProperty("type"))) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //how can i get the DelegateExecution object &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(((UelExpressionCondition)transitionImpl.getDestination().getOutgoingTransitions().get(0).getProperty("condition")).evaluate(execution)); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2012 06:38:23 GMT</pubDate>
    <dc:creator>zhengke</dc:creator>
    <dc:date>2012-09-25T06:38:23Z</dc:date>
    <item>
      <title>how to evaluate with UelExpressionCondition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88903#M60369</link>
      <description>i want to get the next node from Transition, but the Transition is exclusiveGateway,so i want to get the UelExpressionCondition from the Transition and get the evaluate result using UelExpressionCondition.evaluatecode:List&amp;lt;ActivityImpl&amp;gt; activitiList = new ArrayList&amp;lt;ActivityImpl&amp;gt;();TaskEn</description>
      <pubDate>Tue, 25 Sep 2012 06:38:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88903#M60369</guid>
      <dc:creator>zhengke</dc:creator>
      <dc:date>2012-09-25T06:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate with UelExpressionCondition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88904#M60370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can only evaluate ActivitiExpressions using a VariableScope (e.g.. execution), to ensure the expression has access to the variables in the process… Trying to figure out what the next transition will be seems a bit odd, what's your use-case? Why implement a condition in a process and evaluate it yourself and not let the process handle it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 14:47:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88904#M60370</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-09-27T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to evaluate with UelExpressionCondition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88905#M60371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can only evaluate ActivitiExpressions using a VariableScope (e.g.. execution), to ensure the expression has access to the variables in the process… Trying to figure out what the next transition will be seems a bit odd, what's your use-case? Why implement a condition in a process and evaluate it yourself and not let the process handle it?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In china many people would like to do like zhengke…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is chinese elements, maybe and only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 01:14:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-evaluate-with-uelexpressioncondition/m-p/88905#M60371</guid>
      <dc:creator>kafeitu</dc:creator>
      <dc:date>2012-09-28T01:14:51Z</dc:date>
    </item>
  </channel>
</rss>

