<?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: Business key to uniquely access process instance in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/business-key-to-uniquely-access-process-instance/m-p/24570#M10696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are missing the point of the business key.&lt;/P&gt;&lt;P&gt;It is a generic metadata element that is NOT guaranteed to be unique per instance.&lt;/P&gt;&lt;P&gt;Meaning, it means what you want it to mean in your solution.&lt;/P&gt;&lt;P&gt;Therefore, there are no API's available to act on individual instances by business key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, you can achieve all of what you need, but not with a single API call.&lt;/P&gt;&lt;P&gt;Your options:&lt;/P&gt;&lt;P&gt;1. Use standard query API's (for instances or tasks) which accept business key as an argument.&lt;/P&gt;&lt;P&gt;then....&lt;/P&gt;&lt;P&gt;2. Use the returned results to do what you choose (suspend, activate etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extend the API to create custom calls that "assume" business key is unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 12:10:57 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-05-05T12:10:57Z</dc:date>
    <item>
      <title>Business key to uniquely access process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/business-key-to-uniquely-access-process-instance/m-p/24569#M10695</link>
      <description>Hi Team,I am using Activiti-REST API's (5.22.0).I have created a process definition and deployed successfully.I want to start a new instance every time when the request comes. While starting the instance i also want to uniquely name the instance, which can be done using business key.The instance get</description>
      <pubDate>Fri, 05 May 2017 10:15:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/business-key-to-uniquely-access-process-instance/m-p/24569#M10695</guid>
      <dc:creator>sonalik</dc:creator>
      <dc:date>2017-05-05T10:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Business key to uniquely access process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/business-key-to-uniquely-access-process-instance/m-p/24570#M10696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are missing the point of the business key.&lt;/P&gt;&lt;P&gt;It is a generic metadata element that is NOT guaranteed to be unique per instance.&lt;/P&gt;&lt;P&gt;Meaning, it means what you want it to mean in your solution.&lt;/P&gt;&lt;P&gt;Therefore, there are no API's available to act on individual instances by business key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, you can achieve all of what you need, but not with a single API call.&lt;/P&gt;&lt;P&gt;Your options:&lt;/P&gt;&lt;P&gt;1. Use standard query API's (for instances or tasks) which accept business key as an argument.&lt;/P&gt;&lt;P&gt;then....&lt;/P&gt;&lt;P&gt;2. Use the returned results to do what you choose (suspend, activate etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extend the API to create custom calls that "assume" business key is unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 12:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/business-key-to-uniquely-access-process-instance/m-p/24570#M10696</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-05T12:10:57Z</dc:date>
    </item>
  </channel>
</rss>

