<?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 Regression in Javascript Workflow related APIs ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/regression-in-javascript-workflow-related-apis/m-p/217316#M170446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an advanced workflow with some custom properties and a script that launches the workflow after setting the properties (in order to use it from a rule). I have also developed the required JSPs and the configuration in order to be able to launch the same workflow from the Advanced Workflow Wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I set and launch the properties using the Advanced Workflow Wizard it works well in both versions, Labs/Comunnity&amp;nbsp; 3 Final and the actual Community 3.2 .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to launch it using the script it works like a charm in version 3 Final but fails in Community 3.2. This is the script I'm using in both versions to launch the workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var propiedades = new Object();&lt;BR /&gt;propiedades["bpm:workflowDescription"] = "Solicitud de pago de factura " + document.name;&lt;BR /&gt;propiedades["bpm:assignee"] = person;&lt;BR /&gt;propiedades["bnvwf:departmentChief"] = people.getPerson('usuario1');&lt;BR /&gt;propiedades["bnvwf:mainChief"] = people.getPerson('usuario2');&lt;BR /&gt;propiedades["bnvwf:archiveFolder"] = companyhome.childByNamePath("Facturacion/Pendientes Pago");&lt;BR /&gt;propiedades["bnvwf:removeFolder"] = companyhome.childByNamePath("Facturacion/No aceptadas");&lt;BR /&gt;var workflowFactura = workflow.getDefinitionByName('jbpm$bnvwf:departamentalInvoicePayment');&lt;BR /&gt;var paquete = workflow.createPackage();&lt;BR /&gt;paquete.addNode(document);&lt;BR /&gt;var workflowNodoInicial = workflowFactura.startWorkflow(paquete, propiedades);&lt;BR /&gt;/**&lt;BR /&gt; * Auto finalizar las tareas de inicio del workflow. &lt;BR /&gt; **/&lt;BR /&gt;var tareas = workflowNodoInicial.getTasks();&lt;BR /&gt;for (tarea in tareas) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tareas[tarea].endTask(null);&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The error seems related to the transition signaling mechanism, for two reasons, one is that the log says that it can't signal transition 'null' and the other is that if I delete the last 'for' the workflow is "created", but it is stopped in the start node until the user presses the corresponding button to actually exec the initial transition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think this is a regression I should report ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 10:08:21 GMT</pubDate>
    <dc:creator>iblanco</dc:creator>
    <dc:date>2009-10-15T10:08:21Z</dc:date>
    <item>
      <title>Regression in Javascript Workflow related APIs ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/regression-in-javascript-workflow-related-apis/m-p/217316#M170446</link>
      <description>I have an advanced workflow with some custom properties and a script that launches the workflow after setting the properties (in order to use it from a rule). I have also developed the required JSPs and the configuration in order to be able to launch the same workflow from the Advanced Workflow Wiza</description>
      <pubDate>Thu, 15 Oct 2009 10:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/regression-in-javascript-workflow-related-apis/m-p/217316#M170446</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2009-10-15T10:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regression in Javascript Workflow related APIs ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/regression-in-javascript-workflow-related-apis/m-p/217317#M170447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I have &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALFCOM-3480" rel="nofollow noopener noreferrer"&gt;reported it&lt;/A&gt;&lt;SPAN&gt; and it seems as it is due to be solved in 3.3&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 16:26:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/regression-in-javascript-workflow-related-apis/m-p/217317#M170447</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2009-10-19T16:26:22Z</dc:date>
    </item>
  </channel>
</rss>

