AnsweredAssumed Answered

Custom Outcome in Workflow History (4.0d)

Question asked by anthonylau on Sep 14, 2012
Latest reply on Aug 7, 2013 by avasyukov
I have created a custom workflow with Activiti. The outcome history is always "Task Done". I want to change the "Task Done" message. I have tried to add "workflowtask.outcome.OK=OK" in message properties file but no success. Any suggestion is Welcome

Task Type definition:

<type name="mywf:documentCheckTask">
   <parent>bpm:activitiOutcomeTask</parent>
   <properties>
      <property name="mywf:docCheckOutcome">
         <type>d:text</type>
         <default>FAIL</default>
         <constraints>
            <constraint name="mywf:docCheckOutcomeOptions" type="LIST">
               <parameter name="allowedValues">
                  <list>
                     <value>OK</value>
                     <value>FAIL</value>
                  </list>
               </parameter>
            </constraint>
         </constraints>
      </property>
   </properties>
   <overrides>
      <property name="bpm:packageItemActionGroup">
         <default>read_package_item_actions</default>
      </property>
      <property name="bpm:outcomePropertyName">
         <default>{http://www.alfresco.org/model/mywf/1.0}mywf:docCheckOutcome</default>
      </property>
   </overrides>
</type>

share-config-custom.xml

<config evaluator="task-type" condition="mywf:documentCheckTask">
   <forms>
      <form>
         <field-visibility>
            <show id="bpm:priority" />
            <show id="bpm:dueDate" />
            <show id="bpm:taskId" />
            <show id="bpm:status" />
            <show id="packageItems" />
            <show id="bpm:comment" />
            <show id="mywf:docCheckOutcome" />
         </field-visibility>
         <appearance>
            <set id="" appearance="title" label-id="workflow.set.task.info" />
            <set id="info" appearance="title" label-id="workflow.set.task.info"
               template="/org/alfresco/components/form/3-column-set.ftl" />
            <set id="progress" appearance="title" label-id="workflow.set.task.progress" />
            <set id="items" appearance="title" label-id="workflow.set.items" />
            <set id="response" appearance="title" label-id="workflow.set.response" />


            <field id="bpm:taskId" set="info">
               <control template="/org/alfresco/components/form/controls/info.ftl" />
            </field>
            <field id="bpm:priority" set="info" read-only="true">
               <control
                  template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
            </field>
            <field id="bpm:dueDate" set="info" label-id="workflow.field.due">
               <control template="/org/alfresco/components/form/controls/info.ftl" />
            </field>
            <field id="bpm:status" set="progress" />

            <field id="packageItems" set="items" />

            <field id="bpm:comment" label-id="workflow.field.comment"
               set="response">
               <control template="/org/alfresco/components/form/controls/textarea.ftl" />
            </field>

            <field id="mywf:docCheckOutcome" label-id="workflow.field.outcome"
               set="response">
               <control
                  template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
            </field>
         </appearance>
      </form>
   </forms>
</config>

Thanks,
Anthony

Outcomes