<?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: Generic Java delegate to validate task variables. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158958#M113018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i have one java delegate which is used by multiple tasks say 4. Each of these 4 tasks will have different set of variables. Ex: task 1 will have v1, task 2 will have v2 etc. I do not want to declare all of them as expressions in the JavaDelegate because if i add a new task which will use the same delegate i have to keep adding the new expression. In this scenario what would be the best way to define the variables in my bpmn file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also , when i use execution.setVariable or execution.getVariable(""), the variable need not be defined in the bpmn file as task variable. How do i know if that variable is defined in the bpmn file? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to get all task variables declared for a given task from process definition?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 18:45:10 GMT</pubDate>
    <dc:creator>vadaliarchita</dc:creator>
    <dc:date>2013-08-23T18:45:10Z</dc:date>
    <item>
      <title>Generic Java delegate to validate task variables.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158956#M113016</link>
      <description>Hello,&amp;nbsp;&amp;nbsp; I am new to BPMN and Activiti. I have a generic java delegate extending TaskActivityBehavior. This would be used by multiple tasks. i.e. multiple process definitions would have this in class attribute. Each of these ServiceTasks using this class would have different set of variables mostly</description>
      <pubDate>Thu, 22 Aug 2013 22:32:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158956#M113016</guid>
      <dc:creator>vadaliarchita</dc:creator>
      <dc:date>2013-08-22T22:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Java delegate to validate task variables.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158957#M113017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the activiti:field element for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand your other questions, can you explain them in a bit more detail?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 08:56:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158957#M113017</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-23T08:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Java delegate to validate task variables.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158958#M113018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i have one java delegate which is used by multiple tasks say 4. Each of these 4 tasks will have different set of variables. Ex: task 1 will have v1, task 2 will have v2 etc. I do not want to declare all of them as expressions in the JavaDelegate because if i add a new task which will use the same delegate i have to keep adding the new expression. In this scenario what would be the best way to define the variables in my bpmn file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also , when i use execution.setVariable or execution.getVariable(""), the variable need not be defined in the bpmn file as task variable. How do i know if that variable is defined in the bpmn file? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to get all task variables declared for a given task from process definition?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 18:45:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158958#M113018</guid>
      <dc:creator>vadaliarchita</dc:creator>
      <dc:date>2013-08-23T18:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Java delegate to validate task variables.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158959#M113019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;simply use&amp;nbsp; Map&amp;lt;String, Object&amp;gt; getVariables(String taskId); on taskService?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generic-java-delegate-to-validate-task-variables/m-p/158959#M113019</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-09-03T09:45:11Z</dc:date>
    </item>
  </channel>
</rss>

