<?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 set field for Java Service Task to business key? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211476#M164606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Java Service Task that needs a value passed in that happens to be the business key for my process.&amp;nbsp; I know I could use execution.getProcessBusinessKey() to retrieve it but that would make the Java Service Task hardcoded to only work with processes where the value in question is the business key.&amp;nbsp; I'd prefer to pass the value in as a field expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it appears field expressions can only contain variable references?&amp;nbsp; If so, is there not a way to set a field to the value of the business key?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I could duplicate the value from the business key into a variable as well, but I'd rather not have to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a solution I'm missing or is what I want to do not possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Apr 2016 00:19:12 GMT</pubDate>
    <dc:creator>schmke</dc:creator>
    <dc:date>2016-04-16T00:19:12Z</dc:date>
    <item>
      <title>How to set field for Java Service Task to business key?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211476#M164606</link>
      <description>I have a Java Service Task that needs a value passed in that happens to be the business key for my process.&amp;nbsp; I know I could use execution.getProcessBusinessKey() to retrieve it but that would make the Java Service Task hardcoded to only work with processes where the value in question is the business</description>
      <pubDate>Sat, 16 Apr 2016 00:19:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211476#M164606</guid>
      <dc:creator>schmke</dc:creator>
      <dc:date>2016-04-16T00:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set field for Java Service Task to business key?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211477#M164607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your service task, you could get the business key via execution.getProcessInstance().getBusinesskey() ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:08:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211477#M164607</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-20T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set field for Java Service Task to business key?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211478#M164608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but now my service task would be hard-coded to requiring the value to be the business key rather than being able to be more generic and have it set as a field.&amp;nbsp; I'd prefer the service task to be generic and not care how the process implementor chose to use variables or the business key so it is more reusable and not tightly coupled to a specific process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now, I've just gone ahead with having a process instance variable with the value so I can set the field for the service task.&amp;nbsp; This keeps the service task abstracted away from the details and the only cost is duplicating the value in both the business key and a variable.&amp;nbsp; Or perhaps I won't use the business key now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:14:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-field-for-java-service-task-to-business-key/m-p/211478#M164608</guid>
      <dc:creator>schmke</dc:creator>
      <dc:date>2016-04-20T14:14:17Z</dc:date>
    </item>
  </channel>
</rss>

