<?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 Rest API Signal execution with variables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144436#M100983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like there is no analog of &lt;/SPAN&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;RuntimeService.signal(String executionId, Map&amp;lt;String,Object&amp;gt; processVariables)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; provided by Rest API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the source code and there is next implementation of &lt;/SPAN&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;ExecutionResource.performExecutionAction&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; (line 48)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExecutionActionRequest.ACTION_SIGNAL.equals(actionRequest.getAction())) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivitiUtil.getRuntimeService().signal(execution.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So there is no check if variables presented or no.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is an easy fix. Should I create a jira about it and if yes than where? I could submit patch for the issue if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yury&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 09:37:29 GMT</pubDate>
    <dc:creator>ybrukau</dc:creator>
    <dc:date>2013-07-11T09:37:29Z</dc:date>
    <item>
      <title>Rest API Signal execution with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144436#M100983</link>
      <description>Hello,It looks like there is no analog of RuntimeService.signal(String executionId, Map&amp;lt;String,Object&amp;gt; processVariables)‍ provided by Rest API.I checked the source code and there is next implementation of ExecutionResource.performExecutionAction‍ (line 48)&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ExecutionActionRequest.ACTION_S</description>
      <pubDate>Thu, 11 Jul 2013 09:37:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144436#M100983</guid>
      <dc:creator>ybrukau</dc:creator>
      <dc:date>2013-07-11T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Signal execution with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144437#M100984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One more thing. In the meantime I am trying to use old rest API and to do POST to &amp;lt;i&amp;gt;process-instance/${processInstanceId}/signal&amp;lt;/i&amp;gt; with request body like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "activityId":"receivetask1",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "variable1":"value",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "variable2":"value"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the response is &amp;lt;blockcode&amp;gt;{"errorMessage":"Forbidden","statusCode":403}&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And even GET to &amp;lt;i&amp;gt;process-instance/${processInstanceId}&amp;lt;/i&amp;gt; returns the same. But GET to &amp;lt;i&amp;gt;process-instance/${processInstanceId}/diagram&amp;lt;/i&amp;gt; returns expected diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea for this behavior? Do any of old API not available any more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yury&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144437#M100984</guid>
      <dc:creator>ybrukau</dc:creator>
      <dc:date>2013-07-11T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Signal execution with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144438#M100985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for pointing that out. Indeed, the variables are only used in the signalEventReceived, not the plain old signal. Current workaround is to either use the OLD API or do 2 rest-calls: first set variables and signal in the second call, although this is not an"atomic" operation anymore. I've fixed this on master.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About your second question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;protected Status getAuthenticationFailureStatus() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Status.CLIENT_ERROR_FORBIDDEN;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that you're request does not contain valid login-credentials authenticated… What client are you using? The diagram is returned because this requires NO authentication (to be able to embed in HTML, where an img cannot do BASIC authentication).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 07:36:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-signal-execution-with-variables/m-p/144438#M100985</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-12T07:36:13Z</dc:date>
    </item>
  </channel>
</rss>

