<?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 Passing Liferay workflow objects to Activiti serviceTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109442#M76816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are integrating Liferay with Activiti Workflow along with Drools. We would like to pass the Liferay workflow context to the service task in Activiti workflow. Can anyone tell me the best way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried defining a script task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scriptTask" scriptFormat="LiferayJavaScript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def var person = (Long) workflowContext.getSomething("aaa");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the issue is this person object is not accessible outside in other workflow script tasks. How to access the person object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If we define other scriptTasks with scriptFormat as "javascript" then it gives various errors or classnotfound or such related exceptions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 11:31:55 GMT</pubDate>
    <dc:creator>guru_nayak</dc:creator>
    <dc:date>2012-09-06T11:31:55Z</dc:date>
    <item>
      <title>Passing Liferay workflow objects to Activiti serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109442#M76816</link>
      <description>We are integrating Liferay with Activiti Workflow along with Drools. We would like to pass the Liferay workflow context to the service task in Activiti workflow. Can anyone tell me the best way to do this.We tried defining a script task&amp;lt;scriptTask id="scriptTask" scriptFormat="LiferayJavaScript"&amp;amp;</description>
      <pubDate>Thu, 06 Sep 2012 11:31:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109442#M76816</guid>
      <dc:creator>guru_nayak</dc:creator>
      <dc:date>2012-09-06T11:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Liferay workflow objects to Activiti serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109443#M76817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After experimenting we realised that there is something called LiferayJavaScript format which the Activit "scriptTask" supports. Now the problem is that workflowcontext and other objects that belong to liferay are available in the LiferayJavaScript scriptTask scope&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but if we wish to pass workflowcontext outside to other scriptTasks(non-LiferayJavaScript) in the same workflow then it either gives us classnotfound or other related exceptions. I think the crux of the issue is the main integration between liferay and activiti in this region needs some work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LiferayJavaScript scriptTask does not understand the "execution" variable that is commonly uses in activiti workflows. This points to the gaping hole in the integration between these 2 frameworks…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are facing serious issues in integrating liferay with Activiti and drools. Any help on this wud be appreciated. The simple workflow example that is available in the emforge liferay-activiti page is too simple to be used in real life. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any example involving liferay, activiti and drools rule engine would have been wonderful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 05:53:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109443#M76817</guid>
      <dc:creator>guru_nayak</dc:creator>
      <dc:date>2012-09-07T05:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Liferay workflow objects to Activiti serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109444#M76818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We are facing serious issues in integrating liferay with Activiti and drools. Any help on this wud be appreciated. The simple workflow example that is available in the emforge liferay-activiti page is too simple to be used in real life.&lt;BR /&gt;Any example involving liferay, activiti and drools rule engine would have been wonderful.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you stand a better chance of getting help on this in the Liferay forum…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 11:09:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109444#M76818</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-09-07T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Liferay workflow objects to Activiti serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109445#M76819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We found the solution and Iam posting this for the benefit of others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scriptTask" scriptFormat="groovy"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // import necessary liferay packages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import com…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var product = productServiceLocalUtil.getProduct(execution.getVariable("serviceContext").getProductId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;returns the serviceContext of liferay from where one can get all the other related liferay objects. We invoked this from a Activiti script task in inside a workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This small piece of code proved to be the last missing link for us in integrating liferay with activiti and we found this by sheer luck. One more point to be noted is that the serviceContext is not set by us anywhere in our code instead it is getting internally set by Liferay-activiti plugin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Guru&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 04:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-liferay-workflow-objects-to-activiti-servicetask/m-p/109445#M76819</guid>
      <dc:creator>guru_nayak</dc:creator>
      <dc:date>2012-09-10T04:50:55Z</dc:date>
    </item>
  </channel>
</rss>

