<?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: process variable vs. condition expression in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111589#M78471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes WorkflowContext is also Liferay specific.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i understand you right, execution.setVariable is not supported in Liferay?! Is there any chance to get more information about activiti / Liferay integration?! It is very difficult to get the right information about this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Philipp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 07:23:13 GMT</pubDate>
    <dc:creator>larsson7</dc:creator>
    <dc:date>2012-10-12T07:23:13Z</dc:date>
    <item>
      <title>process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111581#M78463</link>
      <description>Hello all,ich have a question about sequence flows and process variables. I have a process with a script task just after the start event. In the script task i define the process variable outputTransition that can get the value "approved" or "denied". After the script task, an exclusive gateway split</description>
      <pubDate>Thu, 11 Oct 2012 07:13:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111581#M78463</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-11T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111582#M78464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you set the variable in your script task? You can always use the "execution" object to set variables, or the "activiti:resultVariable" on the script-task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def scriptVar = "test123"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("myVar", scriptVar)&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:51:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111582#M78464</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-11T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111583#M78465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My script task looks like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;user = Packages.com.liferay.portal.service.UserLocalServiceUtil.fetchUser(10402);&lt;BR /&gt;roles = user.getRoleIds();&lt;BR /&gt;outputTransition = "denied";&lt;BR /&gt;for (i = 0; i &amp;lt; roles.length; i++) {&lt;BR /&gt; if (roles[i] == 15) {&lt;BR /&gt;&amp;nbsp; outputTransition = "approved";&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt;} &lt;BR /&gt;Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus(outputTransition), workflowContext);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It works when i just check the variable outputTransition but when i want to use the variable later in the workflow it doesn´t..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards, Philipp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:09:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111583#M78465</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-11T13:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111584#M78466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use this after the for-loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;execution.setVariable("outputTransition", outputTransition)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:13:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111584#M78466</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-11T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111585#M78467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks frederikheremans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it doesn´t help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do i have to import another class or something to get it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just create a script task and wrote the code above into main Config of the Script Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i try like you said, i get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Caused by: com.liferay.portal.kernel.scripting.ScriptingException: ReferenceError: "execution" is not defined.&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I use eclipse and Liferay 6.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:26:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111585#M78467</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-11T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111586#M78468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What environment are you running in? Activiti inside life ray?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:15:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111586#M78468</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-11T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111587#M78469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use the activiti pluin for liferay. Both with the newest versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So Activiti is integrated in liferay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And i want to use activiti to model different workflows for example to create web content or something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my workflows i want add some code in javascript like above. To make it work in Liferay i have to change the scriptformat from javascript to LiferayJavaScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there is one problem that i don´t see yet. For example the execution.setVariable().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i use the exmaple above in Liferay with scriptformat "javascript" i get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;[http-bio-8080-exec-3][render_portlet_jsp:154] org.activiti.engine.ActivitiException: problem evaluating script: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "workflowContext" is not defined. (&amp;lt;Unknown source&amp;gt;#17) in &amp;lt;Unknown source&amp;gt; at line number 17&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;And when i use it with scriptformat "LiferayJavaScript" i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;com.liferay.portal.kernel.scripting.ScriptingException: ReferenceError: "execution" is not defined. (script#10)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings and thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:27:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111587#M78469</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-11T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111588#M78470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not aware how the Liferay-plugin is hooked in. All I know is that activiti exposes the "execution" to all scripts in script-task, using the default JSR-223 ScriptBindings. It's up to the JS-engine to use this and seems like liferayJavascript doesn't expose this. Is the WorkflowContext also LiferaySpecific? Maybe it exposes a way to set variables on an execution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 07:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111588#M78470</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-12T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111589#M78471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes WorkflowContext is also Liferay specific.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i understand you right, execution.setVariable is not supported in Liferay?! Is there any chance to get more information about activiti / Liferay integration?! It is very difficult to get the right information about this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Philipp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 07:23:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111589#M78471</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-12T07:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111590#M78472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are a couple of wiki-pages on &lt;/SPAN&gt;&lt;A href="http://www.emforge.net/web/activiti-liferay/wiki/-/wiki/Main/BPMN+2.0+for+Liferay+with+using+Activiti+Plugin" rel="nofollow noopener noreferrer"&gt;http://www.emforge.net/web/activiti-liferay/wiki/-/wiki/Main/BPMN+2.0+for+Liferay+with+using+Activiti+Plugin&lt;/A&gt;&lt;SPAN&gt;. I suggest checking out the sources for this to see how the nuts and bolts fit together…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The project not maintained by the Activiti core-team. Perhaps try to contact the project owner?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 07:25:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111590#M78472</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-12T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111591#M78473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, i know this page. I studied days ago but it doesn´t help in special questions..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Easy workflows with just a approve and a small script task, ok but more complex workflows…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They are still developing the Activiti / Liferay integration and the documentation isn´t very good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No good news today..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 07:59:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111591#M78473</guid>
      <dc:creator>larsson7</dc:creator>
      <dc:date>2012-10-12T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: process variable vs. condition expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111592#M78474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Larsson7,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you set any variable in script task, this variable is available in process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set it in one task and use in other. It's not necessary to use setter execution.setVariable() in the script task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 20:12:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-variable-vs-condition-expression/m-p/111592#M78474</guid>
      <dc:creator>iam</dc:creator>
      <dc:date>2012-10-17T20:12:55Z</dc:date>
    </item>
  </channel>
</rss>

