<?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: Using delegateExpression in service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72003#M46715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By looking at you're code, I don't really see what you already tried. Can you elaborate a bit? (perhaps use code-tags for code etc)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 12:21:27 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-06-20T12:21:27Z</dc:date>
    <item>
      <title>Using delegateExpression in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/71999#M46711</link>
      <description>Hi I have following question concerning delegateExpression in service task.&amp;lt;serviceTask id="servicetask1" name="Srv Task check MF" activiti:delegateExpression="${delegateMedFolioProxy}"&amp;gt;&amp;lt;/serviceTask&amp;gt;- Can I use a normal Java-class in delegateExpression or just Spring-Beans?- How can I s</description>
      <pubDate>Thu, 16 Jun 2011 14:32:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/71999#M46711</guid>
      <dc:creator>hazel8</dc:creator>
      <dc:date>2011-06-16T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using delegateExpression in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72000#M46712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using delegateExpressions, you can use all beans that ere defined in your engine. Concrete:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - All beans listed in the property "beans" of the processEngineConfiguration, when using non-spring processEngineConfigurtion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - All spring-beans in your application-context, when using SpringProcessEngineCOnfiguration when beans-property is not configured&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - All referenced spring-beans in the "beans" property, when using Spring ProcessEngineConfiguration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About testing. When using spring, you can define (or include) a test-context that mocks your classes or replaces them with dummies you can use and assert later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit trickier when not in spring-context. But just setting serializable java beans as process-variable will be able to reslove this. All serializable's touched (so eg. when your dummy delegate changes a member field), the bean will be saved to the DB agian. This mean that you can also assert stuff in your test afterwards, by inspecting the process-variables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:55:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72000#M46712</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-16T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using delegateExpression in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72001#M46713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still can't define the delegateExpression-Variable in Unit-Test. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you check my example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BPMN:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="servicetask1" name="Srv Task check MF" activiti:delegateExpression="${delegateMedFolioProxy}"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unit-Test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti.cfg.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="MedFolioDelegateBean" class="ch.triemli.proc.hflow.tasksrvc.MedFolioProxy"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Java-Code –&amp;gt; leads to error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;variableMap.put("delegateMedFolioProxy", new MedFolioProxy());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Class: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class MedFolioProxy implements JavaDelegate { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String var = (String) execution.getVariable("fallNummer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var = var + "-zl";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("fallNummer", var);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:52:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72001#M46713</guid>
      <dc:creator>hazel8</dc:creator>
      <dc:date>2011-06-17T09:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using delegateExpression in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72002#M46714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure (not used this spring way of configuring things) but I think you need to use the bean id in the expression, not put it in a variable&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 10:16:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72002#M46714</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-19T10:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using delegateExpression in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72003#M46715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By looking at you're code, I don't really see what you already tried. Can you elaborate a bit? (perhaps use code-tags for code etc)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:21:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-delegateexpression-in-service-task/m-p/72003#M46715</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-20T12:21:27Z</dc:date>
    </item>
  </channel>
</rss>

