<?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: Recommendations for Custom Self-Registration App. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300711#M253841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can put just a username to your workflow as string, which will be used in Lucene query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;According to display cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson in workflow form please take a look at authority.ftl and taskowner.ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pawel Rzeszowski.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 13:27:11 GMT</pubDate>
    <dc:creator>pawel_rzeszowsk</dc:creator>
    <dc:date>2013-04-17T13:27:11Z</dc:date>
    <item>
      <title>Recommendations for Custom Self-Registration App.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300708#M253838</link>
      <description>I've been charged with creating a basic self-registration app for Alfresco. The basic app would capture a user's registration information - which would essentially mirror sys&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson‍.The external app then needs to store this registration in the repository and kick off an approval workflow so that an</description>
      <pubDate>Tue, 16 Apr 2013 19:18:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300708#M253838</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2013-04-16T19:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations for Custom Self-Registration App.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300709#M253839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can enable a user account in your workflow using javascript or java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In javascript the code would look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var query = "@usr\\:username:\"youserToFindName\"";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var userStoreReference = "user://alfrescoUserStore";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var usersResultList = search.luceneSearch(userStoreReference, query);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var userInTheUserStore = usersResultList[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;userInTheUserStore.properties["usr:enabled"] = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;userInTheUserStore.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pawel Rzeszowski.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 06:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300709#M253839</guid>
      <dc:creator>pawel_rzeszowsk</dc:creator>
      <dc:date>2013-04-17T06:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations for Custom Self-Registration App.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300710#M253840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Pawel. That should come in handy!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've started the process and have verified that you can put a &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;sys:person&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; node in a workflow as the workflow item. So now I need to sort out the best way to modify the workflow task edit form so that the person item either displays all pertinent information, or the link goes to an appropriate view. Right now, if you click on a &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;sys:person&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; item in workflow in Share, the document-details page is not very happy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:10:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300710#M253840</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2013-04-17T12:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations for Custom Self-Registration App.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300711#M253841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can put just a username to your workflow as string, which will be used in Lucene query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;According to display cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson in workflow form please take a look at authority.ftl and taskowner.ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pawel Rzeszowski.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300711#M253841</guid>
      <dc:creator>pawel_rzeszowsk</dc:creator>
      <dc:date>2013-04-17T13:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations for Custom Self-Registration App.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300712#M253842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wound up putting the person in the workflow - it was easier and cleaner as I was able to create a customized packageItems component that showed a link to the user profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried initially using people.enableAccount, but for some reason 'runAs' in my Activiti workflow didn't work…and after a couple frustrating debugging sessions I decided to try your previously supplied query. This worked just fine on my local dev system (using maven), however when migrated to a server it complained that SOLR can't search the user store.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, ultimately I wound up overridding enableAccount to wrap in a 'runAsSystem' call. In my environment only admins have access to the data dictionary or javascript console, so the risks should be minimal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I'll figure out why runAs isn't working - it appears to be a bug, though I don't have time to determine this. Obviously enabling a user within a workflow script is outside the typical use case and likely why this isn't working for me ootb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:11:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/recommendations-for-custom-self-registration-app/m-p/300712#M253842</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2013-04-22T22:11:56Z</dc:date>
    </item>
  </channel>
</rss>

