<?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: Start workflow from external application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271612#M224742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Someone please answer the OP. I'm having this same problem… &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jun 2011 02:50:50 GMT</pubDate>
    <dc:creator>danielsmith21</dc:creator>
    <dc:date>2011-06-04T02:50:50Z</dc:date>
    <item>
      <title>Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271611#M224741</link>
      <description>Hello, I would like to start a workflow from an external application using web service. I know that workflow service are not exposed as soap, so I am trying to call the start-workflow action (org.alfresco.repo.workflow.StartWorkflowActionExecuter).I have the following problems:That action defines on</description>
      <pubDate>Wed, 01 Jun 2011 08:13:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271611#M224741</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-06-01T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271612#M224742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Someone please answer the OP. I'm having this same problem… &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2011 02:50:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271612#M224742</guid>
      <dc:creator>danielsmith21</dc:creator>
      <dc:date>2011-06-04T02:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271613#M224743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved. I created a new action. Basically is the same code of org.alfresco.repo.workflow.StartWorkflowActionExecuter. The new action converts string parameters to the proper types (date, person, int, …)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2011 06:49:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271613#M224743</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-06-04T06:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271614#M224744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why you did not use "start-workflow"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why you had to convert the parameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Map&amp;lt;String, String&amp;gt; param = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;param.put("bpm:workflowDescription", "Something");&lt;BR /&gt;// etc etc&lt;BR /&gt;Reference reference = new Reference(store, null, null);&lt;BR /&gt;ActionUtils.executeAction(reference, "start-workflow", param);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Look for "org.alfresco.webservice.util.ActionUtils". This class contains this methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public static String executeAction(Reference ref, String actionName, Map&amp;lt;String, String&amp;gt; parameters)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :?:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 08:05:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271614#M224744</guid>
      <dc:creator>ventus85</dc:creator>
      <dc:date>2011-07-11T08:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271615#M224745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Compared to "start-workflow" my action allows to specify the workflow initiator (rather then the user credentials used to authenticate against the external application) and other custom fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of these custom fields is a person (like the assignee). So I can provide the username as a string parameter from the external application using the ActionUtils.executeAction method. Then this value is used to retrieve the correct information and object type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for (Map.Entry&amp;lt;String, Serializable&amp;gt; entry : paramValues.entrySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String key = entry.getKey();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QName qname = QName.createQName(entry.getKey(), namespaceService);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (key.equals("dnetwf:checker")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = personService.getPerson((String)entry.getValue());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflowParameters.put(qname, value);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 08:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271615#M224745</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-07-11T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Start workflow from external application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271616#M224746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One of these custom fields is a person (like the assignee). So I can provide the username as a string parameter from the external application using the ActionUtils.executeAction method.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Now I understand that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use "start-workflow" and I run the code does not start the new workflow.&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I do not give up!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 08:38:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-from-external-application/m-p/271616#M224746</guid>
      <dc:creator>ventus85</dc:creator>
      <dc:date>2011-07-11T08:38:14Z</dc:date>
    </item>
  </channel>
</rss>

