<?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: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146035#M102010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an option that solves the problem, but I think that is more dangerous that update process definition… @=&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if a method with "try" in the name is a good idea, but your limitation becomes more clear! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As @silvioneto said, we don't understand why update process definition is so evil&amp;nbsp; ]:-&amp;gt; … If the current activity exists in the new process definition, update. Otherwise, don't update. No miracles, right? This is OK for us. There is another situation that migration is a problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 21:54:56 GMT</pubDate>
    <dc:creator>mikedias</dc:creator>
    <dc:date>2013-07-19T21:54:56Z</dc:date>
    <item>
      <title>There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146028#M102003</link>
      <description>I was&amp;nbsp; trying to update the version of ProcessDefinition in the ProcessInstance and I found the class "SetProcessDefinitionVersionCmd", but it is necessary to call it from a commandExecutor. In my application, i use WELD and i can do the necessary cast for catch the commandExecutor. So i wonder, why</description>
      <pubDate>Fri, 12 Jul 2013 20:14:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146028#M102003</guid>
      <dc:creator>wendelkerr</dc:creator>
      <dc:date>2013-07-12T20:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146029#M102004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The SetProcessDefinitionVersionCmd (as the javadoc hints to) is to be used with great care and won't work for any process-definition you throw at it. Because this "process migration" is not feature-complete, we don't expose it in our API as we're not comfortable with "supporting" it as an API-feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, since it's present in the codebase and tested, you can off course use it if you keep you're head with it. You can get a command-executor from the ProcessEngineConfigurationImpl (indeed a cast needed).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:53:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146029#M102004</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-17T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146030#M102005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Frederik !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think about we expose in the API, and explain in the javadoc that this method need to be used very carefully(I think it is explained already, but we can explain more) , and the every application is responsible for treat the exceptions thrown. Since everybody knows there are no miracle in change the version of process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Att,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wendel Kerr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:49:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146030#M102005</guid>
      <dc:creator>wendelkerr</dc:creator>
      <dc:date>2013-07-17T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146031#M102006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Experience has learned us that people don't read javadoc. That's why we don't expose it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:07:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146031#M102006</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-17T15:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146032#M102007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;frederik, what do you mean by "'process migration'" is not feature-complete? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We realize that if we try to migrate an instance which its current task doesn't exist in the the destination process, the method will throw an Exception. But, what's the matter with it? The SetProcessDefinitionVersionCmd may let the instance somehow inconsistent? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just read the the Activiti In Action's section Dealing with process versioning and didn't realized how do you really deal with the limitation "that the already-running process instances will keep running against the existing version of the process definition." It's very common issue for us…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 20:37:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146032#M102007</guid>
      <dc:creator>silvioneto</dc:creator>
      <dc:date>2013-07-17T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146033#M102008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if the API method was called "&lt;/SPAN&gt;&lt;STRONG&gt;try&lt;/STRONG&gt;&lt;SPAN&gt;UpdateProcessDefinition"? The volatile of method would be more clear!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like: "No miracles here" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 21:06:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146033#M102008</guid>
      <dc:creator>mikedias</dc:creator>
      <dc:date>2013-07-17T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146034#M102009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;LOL… Perhaps we an offer an easy way to execute a command trough the API, like: &lt;/SPAN&gt;&lt;CODE&gt;managementService.executeCommand()&lt;/CODE&gt;&lt;SPAN&gt;, however this opens up a lot of the internals and might not be such a good idea &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 08:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146034#M102009</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-18T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146035#M102010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an option that solves the problem, but I think that is more dangerous that update process definition… @=&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if a method with "try" in the name is a good idea, but your limitation becomes more clear! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As @silvioneto said, we don't understand why update process definition is so evil&amp;nbsp; ]:-&amp;gt; … If the current activity exists in the new process definition, update. Otherwise, don't update. No miracles, right? This is OK for us. There is another situation that migration is a problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 21:54:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146035#M102010</guid>
      <dc:creator>mikedias</dc:creator>
      <dc:date>2013-07-19T21:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146036#M102011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, if the activity maps one on one, it's easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it can easily go wrong. What if you have a user task. Now, in the next version this user task is part of a fork/join ie it is in parallel. Wehn you now simply use the method …. your process will be wrong, because you actually need to create an execution tree that maps to the new parallel behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this is only a very simple example, and as such it's a 'dangerous' thing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 07:54:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146036#M102011</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-24T07:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146037#M102012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, you opened my eyes! With complex process, many situations can be problematic. *shok*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I agree with @frederick said. Execute a command via API is certainly a better option. Can we send a pull request with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: In the amazing activiti-neo4j, this will not be a problem! &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 22:58:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146037#M102012</guid>
      <dc:creator>mikedias</dc:creator>
      <dc:date>2013-07-27T22:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146038#M102013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pull request with &amp;lt;code&amp;gt;managementService.executeCommand()&amp;lt;/code&amp;gt; was created: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/103" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/103&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 05:12:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146038#M102013</guid>
      <dc:creator>mikedias</dc:creator>
      <dc:date>2013-07-28T05:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: There are a motive for not exist a exposed API for 'SetProcessDefinitionVersionCmd' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146039#M102014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the pull-request. It has been merged by Joram last week.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 07:41:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/there-are-a-motive-for-not-exist-a-exposed-api-for/m-p/146039#M102014</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-05T07:41:49Z</dc:date>
    </item>
  </channel>
</rss>

