<?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 Why customized field can be defined in startEvent but not userTask? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/why-customized-field-can-be-defined-in-startevent-but-not/m-p/17091#M7595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why customized field can be defined in startEvent but not userTask? I have defined customized field called scheduledPublishDate in my workflow content model with namespace ut. Here is the partial workflow definition:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;startEvent id="start" name="Start" activiti:formKey="ut:scheduleTask"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&lt;BR /&gt; logger.log("##########workflow start:start!!!");&lt;BR /&gt; if (typeof ut_scheduledPublishDate != 'undefined') {&lt;BR /&gt; logger.log("##########workflow start::ut_scheduledPublishDate defined");&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt; &lt;BR /&gt; &amp;lt;/startEvent&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It does print out "##########workflow start::ut_scheduledPublishDate defined" &amp;nbsp;But if I change startEvent to use formKey as&amp;nbsp;wf:submitReviewTask with the following fragment&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;userTask id="SchedulePublishTast" name="Schedule Publish Task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="ut:scheduleTask"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&lt;BR /&gt; if (typeof ut_scheduledPublishDate != 'undefined') {&lt;BR /&gt;&amp;nbsp; logger.log("##########ut_scheduledPublishDate DOES defined!!!");&lt;BR /&gt; } else {&lt;BR /&gt;&amp;nbsp; logger.log("##########ut_scheduledPublishDate NOT defined!!!");&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt; &lt;BR /&gt; &amp;lt;/userTask&amp;gt;&lt;/P&gt;&lt;P&gt;It prints out&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;"##########ut_scheduledPublishDate NOT defined!!!"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The same formKey ut:scheduleTask. If used in startEvent, I can get defined customized field but I can't get it if used in userTask. But I can see the field from user interface. Anybody knows what I might be missing. Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 15:17:53 GMT</pubDate>
    <dc:creator>jboss_user</dc:creator>
    <dc:date>2017-09-07T15:17:53Z</dc:date>
    <item>
      <title>Why customized field can be defined in startEvent but not userTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-customized-field-can-be-defined-in-startevent-but-not/m-p/17091#M7595</link>
      <description>Why customized field can be defined in startEvent but not userTask? I have defined customized field called scheduledPublishDate in my workflow content model with namespace ut. Here is the partial workflow definition:&amp;lt;startEvent id="start" name="Start" activiti:formKey="ut:scheduleTask"&amp;gt; &amp;lt;ex</description>
      <pubDate>Thu, 07 Sep 2017 15:17:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-customized-field-can-be-defined-in-startevent-but-not/m-p/17091#M7595</guid>
      <dc:creator>jboss_user</dc:creator>
      <dc:date>2017-09-07T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why customized field can be defined in startEvent but not userTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-customized-field-can-be-defined-in-startevent-but-not/m-p/17092#M7596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind. I resolved by myself. What is interesting is that I don't need to set variable in startEvent but need it in userTask for other tasks to refer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 16:03:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-customized-field-can-be-defined-in-startevent-but-not/m-p/17092#M7596</guid>
      <dc:creator>jboss_user</dc:creator>
      <dc:date>2017-09-07T16:03:31Z</dc:date>
    </item>
  </channel>
</rss>

