<?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: Obfuscating form data in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133718#M93909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Extract from SubmitStartFormCmd:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; protected Object execute(CommandContext commandContext, TaskEntity task) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandContext.getHistoryManager()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .reportFormPropertiesSubmitted(task.getExecution(), properties, taskId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskFormHandler taskFormHandler = task.getTaskDefinition().getTaskFormHandler();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskFormHandler.submitFormProperties(properties, task.getExecution());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; task.complete();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;BR /&gt;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'history record' is done using the RAW properties-map, as it is passed in. Since the record happens before the "TaskFormHandler" is called, it's also not an option to use a custom TaskFormHandler that alters the values in the properties-map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I see this working is either we move the "record" of history to after the TaskFormHandler has been executed, although there is no explicit use case for this, as the form-properties are intended to be stored in history as String's, unaffected by the property-type itself. Another way is to do the encryption in the layer above Activiti, if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A solution that can be done without having to modify existing activiti-sourcecode is to create a subclass of the HistoryManager and provide your own factory for this to the processEngineConfiguration. You can override the "reportFormPropertiesSubmitted" method and alter the string-values before you call the super.reportFormPropertiesSubmitted(…).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 11:54:30 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-07-03T11:54:30Z</dc:date>
    <item>
      <title>Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133713#M93904</link>
      <description>I have created my own FormType for data fields that are sensitive, so that I can encrypt their values.&amp;nbsp;&amp;nbsp; This works well for ACT_RU_VARIABLE and ACT_HI_VARINST.&amp;nbsp; What I can't figure out is how to have it encrypted in ACT_HI_DETAIL.&amp;nbsp; The FormProperties are still stored in plain text.</description>
      <pubDate>Wed, 03 Jul 2013 01:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133713#M93904</guid>
      <dc:creator>geoffb</dc:creator>
      <dc:date>2013-07-03T01:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133714#M93905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide some more details about the FormType you've implemented?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 09:29:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133714#M93905</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-07-03T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133715#M93906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I basically, just did this in my class that extends AbstractFormType &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; def convertFormValueToModelValue(String secretString) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new SecretSerialisationType(secretString)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:22:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133715#M93906</guid>
      <dc:creator>geoffb</dc:creator>
      <dc:date>2013-07-03T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133716#M93907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of using a form-type, use a custom variable-type which stores the value encrypted and DON'T use form-properties, they will be always stored the way they come into the submitForm() method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option, if form properties are required, is setting the history level high enough, so form-properties are not recorded…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:39:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133716#M93907</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-03T11:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133717#M93908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I really want is both to use a form type and to leave the same history level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way I can modify how the history stores my particular form type?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:47:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133717#M93908</guid>
      <dc:creator>geoffbullen</dc:creator>
      <dc:date>2013-07-03T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Obfuscating form data</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133718#M93909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Extract from SubmitStartFormCmd:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; protected Object execute(CommandContext commandContext, TaskEntity task) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandContext.getHistoryManager()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .reportFormPropertiesSubmitted(task.getExecution(), properties, taskId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskFormHandler taskFormHandler = task.getTaskDefinition().getTaskFormHandler();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskFormHandler.submitFormProperties(properties, task.getExecution());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; task.complete();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;BR /&gt;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'history record' is done using the RAW properties-map, as it is passed in. Since the record happens before the "TaskFormHandler" is called, it's also not an option to use a custom TaskFormHandler that alters the values in the properties-map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I see this working is either we move the "record" of history to after the TaskFormHandler has been executed, although there is no explicit use case for this, as the form-properties are intended to be stored in history as String's, unaffected by the property-type itself. Another way is to do the encryption in the layer above Activiti, if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A solution that can be done without having to modify existing activiti-sourcecode is to create a subclass of the HistoryManager and provide your own factory for this to the processEngineConfiguration. You can override the "reportFormPropertiesSubmitted" method and alter the string-values before you call the super.reportFormPropertiesSubmitted(…).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:54:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obfuscating-form-data/m-p/133718#M93909</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-03T11:54:30Z</dc:date>
    </item>
  </channel>
</rss>

