<?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: Problem: Dates in different format for create process and get Task Info in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172204#M125429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We use the jackson ISO8601 way of reading/writing dates, we force all dates to be written in ISO8601:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; // Get hold of JSONConverter and enable ISO-date format by default&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;ConverterHelper&amp;gt; registeredConverters = Engine.getInstance().getRegisteredConverters();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(ConverterHelper helper : registeredConverters) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(helper instanceof JacksonConverter) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JacksonConverter jacksonConverter = (JacksonConverter) helper;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacksonConverter.getObjectMapper().configure(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS, false);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The input accepts a variety of formats (including ISO8601), when date-typed members are encountered. Perhaps the ISO8601DATEFORMAT you're using is more strict or does not cover all possible notations?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 10:15:29 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-04-22T10:15:29Z</dc:date>
    <item>
      <title>Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172199#M125424</link>
      <description>We are developing around the rest service and have noticed the following problem.When we create a process we need to send the date using private ISO8601DateFormat ISO8601DATEFORMAT = new ISO8601DateFormat();However, when we request information on a task the date is returned as 2014-04-03T00:55:00.64</description>
      <pubDate>Thu, 03 Apr 2014 20:29:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172199#M125424</guid>
      <dc:creator>bobfleischman</dc:creator>
      <dc:date>2014-04-03T20:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172200#M125425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are using the REST API right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which REST services are you using and experiencing this issue with?&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>Mon, 07 Apr 2014 07:54:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172200#M125425</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-04-07T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172201#M125426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, we are using the REST API for all interactions with the Activiti Engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using activiti-rest 5.15.1 - the latest stable release&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;Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:44:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172201#M125426</guid>
      <dc:creator>bobfleischman</dc:creator>
      <dc:date>2014-04-07T15:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172202#M125427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay thanks, but which specific REST services are using and experiencing these issues with?&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>Tue, 08 Apr 2014 13:25:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172202#M125427</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-04-08T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172203#M125428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are my constants&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; private BPMServer activiti_server = BPMServer.TEST;&lt;BR /&gt; private String activiti_rest_base_url = "http://" + activiti_server.getServerName() + "/activiti-rest/service";&lt;BR /&gt; private static final String TASK_URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "/history/historic-task-instances";&lt;BR /&gt; private static final String RUNTIME_PROCESS = "/runtime/process-instances";&lt;BR /&gt;[\code]&lt;BR /&gt;To Create a process I use this&lt;BR /&gt;[code] HashMap&amp;lt;String,Object&amp;gt; response2 = restTemplate.postForObject( activiti_rest_base_url + RUNTIME_PROCESS , request, HashMap.class);&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;To get the task info I use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;String url = activiti_rest_base_url + TASK_URL + "?taskId=" + pTaskId + "&amp;amp;includeTaskLocalVariables=true&amp;amp;includeProcessVariables=true";&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue seems to be specifically related to global variables.&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;Bob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; HashMap&amp;lt;String,Object&amp;gt; response2 = restTemplate.postForObject( activiti_rest_base_url + RUNTIME_PROCESS , request, HashMap.class);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; String url = activiti_rest_base_url + TASK_URL + "?taskId=" + pTaskId + "&amp;amp;includeTaskLocalVariables=true&amp;amp;includeProcessVariables=true";&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 15:21:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172203#M125428</guid>
      <dc:creator>bobfleischman</dc:creator>
      <dc:date>2014-04-08T15:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Dates in different format for create process and get Task Info</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172204#M125429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We use the jackson ISO8601 way of reading/writing dates, we force all dates to be written in ISO8601:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; // Get hold of JSONConverter and enable ISO-date format by default&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;ConverterHelper&amp;gt; registeredConverters = Engine.getInstance().getRegisteredConverters();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(ConverterHelper helper : registeredConverters) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(helper instanceof JacksonConverter) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JacksonConverter jacksonConverter = (JacksonConverter) helper;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacksonConverter.getObjectMapper().configure(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS, false);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The input accepts a variety of formats (including ISO8601), when date-typed members are encountered. Perhaps the ISO8601DATEFORMAT you're using is more strict or does not cover all possible notations?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:15:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-dates-in-different-format-for-create-process-and-get/m-p/172204#M125429</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-04-22T10:15:29Z</dc:date>
    </item>
  </channel>
</rss>

