<?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: How to trigger a Process from APS when an E-mail comes to ACS ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75362#M23943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;BR /&gt;but while getting Process definition from activiti webscript&amp;nbsp;by the following call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET /alfresco/service/activiti/server/{token1}&amp;nbsp;&lt;BR /&gt;It shows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/19971_screencapture-23-22-110-20-8080-alfresco-service-activiti-server-runtime-app-definitions-2018-03-27-14_37_02.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;P&gt;What is token1 here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2018 10:29:53 GMT</pubDate>
    <dc:creator>amitkulhari26</dc:creator>
    <dc:date>2018-03-27T10:29:53Z</dc:date>
    <item>
      <title>How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75358#M23939</link>
      <description>I have created a Process for&amp;nbsp;Alfresco Process Service and now I want to trigger it from Alfresco Content Service when, an E-mail comes to Alfresco Content Service, how it's possible?</description>
      <pubDate>Mon, 26 Mar 2018 06:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75358#M23939</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-26T06:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75359#M23940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When an email arrives at ACS (i.e. "is filed as a document") you can have a custom behaviour (which you implemented using Java APIs) fire and call APS via its REST API to trigger your custom process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 07:44:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75359#M23940</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-26T07:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75360#M23941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply!.&lt;BR /&gt;can you please tell me which behavior I supposed to use in my case?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:14:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75360#M23941</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-26T08:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75361#M23942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;onCreateNode sounds about right when you want to start it as soon as the document / email has been filed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:34:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75361#M23942</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-26T08:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75362#M23943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;BR /&gt;but while getting Process definition from activiti webscript&amp;nbsp;by the following call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET /alfresco/service/activiti/server/{token1}&amp;nbsp;&lt;BR /&gt;It shows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/19971_screencapture-23-22-110-20-8080-alfresco-service-activiti-server-runtime-app-definitions-2018-03-27-14_37_02.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;P&gt;What is token1 here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 10:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75362#M23943</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-27T10:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75363#M23944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand why you would be calling that webscript... That webscript is a backend for APS to call, and I thought you wanted to trigger an APS process from ACS, so you'd have to do call in the exact opposite direction. Also, that webscript is likely part of the Enterprise-only ACS / APS connector used for some internal handling, and as such is not supposed to be called from custom code (I mean, the response message states&amp;nbsp;it hasn't been whitelisted).&lt;/P&gt;&lt;P&gt;For calling APS from ACS, take a look at the &lt;A href="https://docs.alfresco.com/process-services1.7/topics/process_services_api.html" rel="nofollow noopener noreferrer"&gt;Alfresco Process Services ReST API documentation&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 20:26:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75363#M23944</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-27T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75364#M23945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am using already&amp;nbsp;defined method&amp;nbsp; from&amp;nbsp; &lt;STRONG&gt;com.activiti.alfresco.service.ActivitiService&lt;/STRONG&gt;&amp;nbsp; Interface which is :&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;public void startProcessById(String processId, String processName, Map&amp;lt;String, Object&amp;gt; formValues, ActivitiService.DocumentContext documentContext)&lt;/STRONG&gt;"&lt;BR /&gt;but&amp;nbsp;I&amp;nbsp; have no idea about&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"&lt;STRONG&gt;ActivitiService.DocumentContext documentContext&lt;/STRONG&gt;" Parameter and how to pass&lt;STRONG&gt;&amp;nbsp;"formValues"&amp;nbsp;&lt;/STRONG&gt;parameter as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Map&amp;lt;String, Object&amp;gt; in&amp;nbsp;startProcessById() method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me, how to use those Parameters in my custom Behaviour?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:50:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75364#M23945</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-28T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75365#M23946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written following code to trigger the process, Please have a look!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private Behaviour onCreateNode;&lt;BR /&gt; &lt;BR /&gt; public void init() {&lt;BR /&gt; this.onCreateNode = new JavaBehaviour(this, "onCreateNode", NotificationFrequency.TRANSACTION_COMMIT);&lt;BR /&gt; &lt;BR /&gt; this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateNode"), ContentModel.TYPE_CONTENT, this.onCreateNode);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;public void onCreateNode(ChildAssociationRef childasso) {&lt;BR /&gt; NodeRef node=childasso.getChildRef();&lt;BR /&gt; &lt;BR /&gt; DocumentContext documentContext= new DocumentContext(node,"formFieldId");&lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; formValues = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt; &lt;BR /&gt; formValues.put(key,value);&lt;BR /&gt; &lt;BR /&gt; try {&lt;BR /&gt;public void startProcessById(String processId, String processName, Map&amp;lt;String, Object&amp;gt; formValues, ActivitiService.DocumentContext documentContext)&lt;BR /&gt;&amp;nbsp; } catch (RemoteActivitiException | ActivitiAuthenticationException e) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;but while executing it in Maven it shows me that: Package does not exist but I have uploaded the Package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75365#M23946</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-29T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75366#M23947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide the full class code as an attachment or in a syntax highlighter? The piece of code you provided does not make much sense - you have a method declaration inside the try-catch block, which would not compile at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 13:40:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75366#M23947</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-30T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75367#M23948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not able to attach, there is no option for attaching document so providing only startProcessId() code from RemoteActivitiService class that belongs to com.activiti.alfresco.service package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void startProcessById(String processId, String processName, Map&amp;lt;String, Object&amp;gt; formValues, ActivitiService.DocumentContext documentContext)&lt;BR /&gt; throws RemoteActivitiException, ActivitiAuthenticationException&lt;BR /&gt; {&lt;BR /&gt; JSONObject startProcessVars = new JSONObject();&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; if (formValues != null) {&lt;BR /&gt; for (Map.Entry&amp;lt;String, Object&amp;gt; formValue : formValues.entrySet()) {&lt;BR /&gt; if ((formValue.getValue() instanceof ActivitiService.JsonSerializable)) {&lt;BR /&gt; startProcessVars.put((String)formValue.getKey(), ((ActivitiService.JsonSerializable)formValue.getValue()).toJSON());&lt;BR /&gt; } else {&lt;BR /&gt; startProcessVars.put((String)formValue.getKey(), formValue.getValue());&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; if (documentContext != null)&lt;BR /&gt; {&lt;BR /&gt; NodeRef nodeRef = documentContext.getNodeRef();&lt;BR /&gt; FileInfo fileInfo = this.fileFolderService.getFileInfo(nodeRef);&lt;BR /&gt; if ((!fileInfo.isFolder()) &amp;amp;&amp;amp; (!fileInfo.isLink()))&lt;BR /&gt; {&lt;BR /&gt; SiteInfo siteInfo = this.siteService.getSite(nodeRef);&lt;BR /&gt; String sourceId = nodeRef.getId() + (siteInfo != null ? "@" + siteInfo.getShortName() : "");&lt;BR /&gt; JSONObject body = new JSONObject();&lt;BR /&gt; body.put("source", this.activitiParameters.getAlfrescoRepositoryName());&lt;BR /&gt; body.put("sourceId", sourceId);&lt;BR /&gt; body.put("name", fileInfo.getName());&lt;BR /&gt; body.put("mimeType", JSONObject.NULL);&lt;BR /&gt; body.put("simpleType", JSONObject.NULL);&lt;BR /&gt; body.put("link", false);&lt;BR /&gt; JSONObject contentObject = doJsonPost("app/rest/content", body);&lt;BR /&gt; int contentId = contentObject.getInt("id");&lt;BR /&gt; startProcessVars.put(documentContext.getFormFieldId(), String.valueOf(contentId));&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; startProcessInternal(processId, processName, startProcessVars);&lt;BR /&gt; }&lt;BR /&gt; catch (JSONException e)&lt;BR /&gt; {&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 14:31:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75367#M23948</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-30T14:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75368#M23949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And can you provide more details to your error, i.e. the original exception stacktrace / response?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 20:22:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75368#M23949</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-30T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75369#M23950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It shows: package(com.activiti.alfresco.service) does not exist, which I have used in my package.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 20:32:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75369#M23950</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-03-30T20:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75370#M23951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use it then. It sounds like a package that would only be available within APS itself, but now your are writing code inside ACS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 11:28:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75370#M23951</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-31T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75371#M23952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please provide me some guidance or some example, like how I supposed to do this in ACS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:11:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75371#M23952</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-04-02T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75372#M23953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't accessed APS from ACS myself, so don't have any ready-to-use code samples. But just use any Java-based tooling for doing REST calls and use the &lt;A href="https://docs.alfresco.com/process-services1.7/topics/process_services_api.html" rel="nofollow noopener noreferrer"&gt;APS ReST API&lt;/A&gt;. Don't rely on any APS-internal APIs which are not available in ACS. Build your own little REST client abstraction, i.e. backed by libraries like resteasy, jackson or any other in that domain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 19:10:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75372#M23953</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-02T19:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75373#M23954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I am trying to start the process by the following code but getting:&lt;STRONG&gt; Caused&amp;nbsp;by: java.lang.RuntimeException: Failed&amp;nbsp; : HTTP error code : 401&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;private Behaviour onCreateNode;&lt;BR /&gt; &lt;BR /&gt;public void init() {&lt;BR /&gt;this.onCreateNode = new JavaBehaviour(this, "onCreateNode", NotificationFrequency.TRANSACTION_COMMIT);&lt;BR /&gt; &lt;BR /&gt;this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateNode"), ContentModel.TYPE_CONTENT, this.onCreateNode);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt;public void onCreateNode(ChildAssociationRef childasso) {&lt;BR /&gt;&lt;BR /&gt;NodeRef node=childasso.getChildRef();&lt;BR /&gt; &lt;BR /&gt;System.out.println(node);&lt;BR /&gt;&lt;BR /&gt;System.out.println(childasso.getQName());&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;try {&lt;BR /&gt;URL url = new URL("localhost:9090/activiti-app/api/enterprise/process-instances");&lt;/P&gt;&lt;P&gt;HttpURLConnection conn = (HttpURLConnection) url.openConnection();&lt;BR /&gt; &lt;BR /&gt;conn.setDoOutput(true);&lt;BR /&gt;conn.setRequestMethod("POST");&lt;BR /&gt;conn.setRequestProperty("Accept", "application/json");&lt;BR /&gt; &lt;BR /&gt;String input = "{\"processDefinitionId\":\"adhoctask:1:13\"}";&lt;BR /&gt;OutputStream os = conn.getOutputStream();&lt;BR /&gt;os.write(input.getBytes());&lt;BR /&gt;os.flush();&lt;BR /&gt; &lt;BR /&gt;if (conn.getResponseCode() != 200) {&lt;BR /&gt;throw new RuntimeException("Failed : HTTP error code : "&lt;BR /&gt;+ conn.getResponseCode());&lt;BR /&gt;}&lt;BR /&gt;BufferedReader br = new BufferedReader(new InputStreamReader(&lt;BR /&gt;(conn.getInputStream())));&lt;/P&gt;&lt;P&gt;String output;&lt;BR /&gt;System.out.println("Output from Server .... \n");&lt;BR /&gt;while ((output = br.readLine()) != null) {&lt;BR /&gt;System.out.println(output);&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;conn.disconnect();&lt;BR /&gt; &lt;BR /&gt;}catch (MalformedURLException e) {&lt;BR /&gt; &lt;BR /&gt;e.printStackTrace();&lt;BR /&gt; &lt;BR /&gt;}catch (IOException e) {&lt;/P&gt;&lt;P&gt;e.printStackTrace();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/20000_e.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please correct me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:06:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75373#M23954</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-04-03T14:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75374#M23955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please provide the real error? I.e. look into alfresco.log for the details, because the screenshot only shows a wrapped message...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:29:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75374#M23955</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-04T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75375#M23956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I&amp;nbsp;am getting two errors in the log while compiling, which are in&amp;nbsp;the following screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/20017_log2.png" style="width: 620px; height: 376px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/20018_log1.png" style="width: 620px; height: 263px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75375#M23956</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-04-04T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75376#M23957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there you have it - you are throwing that error yourself because you get a 401 response code... Your custom code isn't handling authentication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 06:59:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75376#M23957</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-05T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a Process from APS when an E-mail comes to ACS ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75377#M23958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So could you please pointer me where should I suppose to change in my code to trigger the process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 06:14:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-trigger-a-process-from-aps-when-an-e-mail-comes-to-acs/m-p/75377#M23958</guid>
      <dc:creator>amitkulhari26</dc:creator>
      <dc:date>2018-04-06T06:14:02Z</dc:date>
    </item>
  </channel>
</rss>

