<?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: script task runs in wrong context in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133797#M93943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome! Keep us posted on the progress! Looking forward to use it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 09:27:44 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-12-21T09:27:44Z</dc:date>
    <item>
      <title>script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133792#M93938</link>
      <description>High-level context: This is part of my Activiti / Jenkins integration in the Jenkow plugin.&amp;nbsp; Kohsuke Kawaguchi has created a new Jenkins plugin which contains the Activiti Explorer UI, served out by Jenkins. We're now trying to get both working.A simple workflow (user task is assigned to "kermit"):[</description>
      <pubDate>Tue, 11 Dec 2012 01:38:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133792#M93938</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-12-11T01:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133793#M93939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The workflow engine has been running in a different thread, where the ConsoleLogger class is visible.&lt;BR /&gt;When the Explorer completes the user task, the very same thread also tries to execute the the script task.&lt;BR /&gt;This fails, because it's in a different context where the ConsoleLogger class is not visible.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So do I understand it correctly: 'console' is a process variable, right? And when the variable is deserialized in the script task, the class is not found?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to have an implicit task in front of the script task to avoid the Explorer thread from entering the script task?&lt;BR /&gt;Or, should I try to make the Explorer task see the same classes as the "engine" thread?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;To understand what goes wrong, I need some more information on how Explorer is included in Jenkins. Explorer just access the process engine. So it sounds very strange that it doesn't know the class. I don't think threading is the problem here, but I can't be sure until I know how the integration is done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 07:47:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133793#M93939</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-11T07:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133794#M93940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So do I understand it correctly: 'console' is a process variable, right? And when the variable is deserialized in the script task, the class is not found?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To understand what goes wrong, I need some more information on how Explorer is included in Jenkins. Explorer just access the process engine. So it sounds very strange that it doesn't know the class. I don't think threading is the problem here, but I can't be sure until I know how the integration is done.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I'm so far unable to reproduce the problem in a junit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We're constructing the Activiti Explorer's context here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/jenkinsci/activiti-explorer-plugin/blob/master/plugin/src/main/java/org/jenkinsci/plugins/activiti_explorer/ActivitiExplorer.java#L148" rel="nofollow noopener noreferrer"&gt;https://github.com/jenkinsci/activiti-explorer-plugin/blob/master/plugin/src/main/java/org/jenkinsci/plugins/activiti_explorer/ActivitiExplorer.java#L148&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The involved class loaders do contain the class which is later missing when the script task tries to access it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still trying out some more options…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 18:03:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133794#M93940</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-12-15T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133795#M93941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Freaky stuff, makes no real sense why it doesnt do what it should do &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without much more to go with, I'm afraid I'm of not much help at the moment …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:26:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133795#M93941</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-18T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133796#M93942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kohsuke found a way that the Jenkow plugin's engine object can be used by the Acitiviti Explorer plugin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it works as intended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:56:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133796#M93942</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-12-19T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: script task runs in wrong context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133797#M93943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome! Keep us posted on the progress! Looking forward to use it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:27:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-runs-in-wrong-context/m-p/133797#M93943</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-21T09:27:44Z</dc:date>
    </item>
  </channel>
</rss>

