Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:38:18+00:00 2026-05-29T05:38:18+00:00

I have created my own custom workflow (for now this is just adhoc workflow

  • 0

I have created my own custom workflow (for now this is just adhoc workflow customization) and i have managed to customize start workflow form, however a can not customize second form, this is edit task form (when user start process and assign to “someone”, “someone” get task in inbox and he see edit task form). This second form is the same as my first plus some extra fields. This is because i need that “someone” can view and edit data entered on start workflow form. So i basically copied first form configuration to second form but this doesn’t work, only sets and textareas are rendered. Anybody now how can i customize this?

workflow definition

<process id="appppV1" name="Proces otvaranja projekta">

<startEvent id="start" name="Start" activiti:formKey="mcwm:submitStart"></startEvent>

<userTask id="preparationOfProjectCharter" name="Priprema projektne povelje" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="mcwm:preparationOfProjectCharter">
  <extensionElements>
    <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
      <activiti:field name="script">
        <activiti:string>if (typeof bpm_workflowDueDate != 'undefined') task.setVariableLocal('bpm_dueDate', bpm_workflowDueDate);</activiti:string>
      </activiti:field>
    </activiti:taskListener>
  </extensionElements>
</userTask>

model for workflow:

<types>
    <type name="mcwm:submitStart">
        <parent>bpm:startTask</parent>
        <properties>
            <property name="mcwm:projectName">
                <title>Naziv projekta</title>
                <type>d:text</type>
                <mandatory>true</mandatory>
            </property>
            <property name="mcwm:shortProjectName">
                <title>Skraćeni naziv projekta</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>
            <property name="mcwm:projectOrderer">
                <title>Naručitelj projekta</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>
            <property name="mcwm:shortProjectOrderer">
                <title>Skraćeni naziv naručitelja projekta</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>
            <property name="mcwm:isoProcess">
                <title>ISO 9000 proces</title>
                <type>d:text</type>
                <mandatory>true</mandatory>
                <default> </default>
                <constraints>
                    <constraint name="mcwm:isoProcessChoices" type="LIST">
                        <parameter name="allowedValues">
                            <list>
                                <value> </value>
                                <value>održavanje - aplikativno</value>
                                <value>održavanje - sistemsko</value>
                                <value>konsalting</value>
                                <value>razvoj - sa odobrenjem arhitekture</value>
                                <value>razvoj - bez odobrenjem arhitekture</value>
                                <value>mali razvoj</value>
                                <value>implementacija</value>
                            </list>
                        </parameter>
                    </constraint>
                </constraints>
            </property>
            <property name="mcwm:reporting">
                <title>Učestalost izveštavanja</title>
                <type>d:text</type>
                <mandatory>true</mandatory>
                <default>mesečno</default>
                <constraints>
                    <constraint name="mcwm:reportingChoices" type="LIST">
                        <parameter name="allowedValues">
                            <list>
                                <value>mesečno</value>
                                <value>kvartalno</value>
                                <value>po okončanju</value>
                            </list>
                        </parameter>
                    </constraint>
                </constraints>
            </property>
            <property name="mcwm:projectGoals">
                <title>Ciljevi projekta</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>

            <property name="mcwm:beginDate">
                <title>Datum početka projekta</title>
                <type>d:date</type>
                <mandatory>true</mandatory>
            </property>

            <property name="mcwm:endDate">
                <title>Datum okončanja projekta</title>
                <type>d:date</type>
                <mandatory>false</mandatory>
            </property>

            <property name="mcwm:team">
                <title>Projektni tim (*promena tipa kontorle)</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>

            <property name="mcwm:teamResource">
                <title>Predviđeni utrošak ljudskih resursa (*promena tipa kontorle)</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>

            <property name="mcwm:teamComent">
                <title>Komentar na predviđeni utrošak ljudskih resursa</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>

            <property name="mcwm:changeComent">
                <title>Komentar izmene</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
            </property>
        </properties>   
     <!--  To select a user -->
     <mandatory-aspects>
        <aspect>bpm:assignee</aspect>
     </mandatory-aspects>
    </type>

    <type name="mcwm:preparationOfProjectCharter">
        <parent>bpm:workflowTask</parent>
        <properties>
            <property name="mcwm:editTask">
                <title>Edit task</title>
                <type>d:text</type>
                <mandatory>true</mandatory>
            </property>
        </properties>
    </type>

share-config-custom.xml

<config evaluator="string-compare" condition="activiti$appppV1">
  <forms>
     <form>
        <field-visibility>
           <hide id="bpm:workflowDescription" />
           <hide id="bpm:workflowDueDate" />
           <hide id="bpm:workflowPriority" />
           <show id="bpm:assignee" />

           <show id="mcwm:projectName" />
           <show id="mcwm:shortProjectName" />
           <show id="mcwm:projectOrderer" />
           <show id="mcwm:shortProjectOrderer" />
           <show id="mcwm:isoProcess" />
           <show id="mcwm:reporting"/>
           <show id="mcwm:projectGoals"/>
           <show id="mcwm:beginDate"/>
           <show id="mcwm:endDate"/>

           <show id="mcwm:team"/>
           <show id="mcwm:teamResource"/>
           <show id="mcwm:teamComent"/>
           <show id="mcwm:changeComent"/>


           <hide id="packageItems" />
           <hide id="bpm:sendEMailNotifications" />
        </field-visibility>
        <appearance>
            <set id="" appearance="title" label-id="apppv1.set.projekat" />
            <set id="general" appearance="fieldset" label-id="appppV1.set.general" />
            <set id="date" template="/org/alfresco/components/form/2-column-set.ftl" appearance="fieldset" label-id="appppV1.set.date" />
            <set id="team" appearance="fieldset" label-id="appppV1.set.team" />
            <set id="change" appearance="fieldset" label-id="appppV1.set.change" />


           <field id="mcwm:projectName" set="general" />
           <field id="mcwm:shortProjectName" set="general" />
           <field id="mcwm:projectOrderer" set="general" />
           <field id="mcwm:shortProjectOrderer" set="general" />
           <field id="mcwm:isoProcess" set="general" />
           <field id="mcwm:reporting" set="general" />

           <field id="mcwm:projectGoals" set="general">
                <control template="/org/alfresco/components/form/controls/textarea.ftl">
                    <control-param name="style">width: 65%</control-param>
                    <control-param name="rows">5</control-param>
                </control>
            </field>

            <field id="mcwm:beginDate" set="date"/>
            <field id="mcwm:endDate" set="date"/>
            <field id="bpm:assignee" set="team" label="Voditelj projekta"/>
            <field id="mcwm:team" set="team">
                <control template="/org/alfresco/components/form/controls/textarea.ftl">
                    <control-param name="style">width: 65%</control-param>
                    <control-param name="rows">5</control-param>
                </control>
            </field>
            <field id="mcwm:teamResource" set="team"/>
            <field id="mcwm:teamComent" set="team">
                <control template="/org/alfresco/components/form/controls/textarea.ftl">
                    <control-param name="style">width: 65%</control-param>
                    <control-param name="rows">5</control-param>
                </control>
            </field>

            <field id="mcwm:changeComent" set="change">
                <control template="/org/alfresco/components/form/controls/textarea.ftl">
                    <control-param name="style">width: 65%</control-param>
                    <control-param name="rows">5</control-param>
                </control>
            </field>
        </appearance>
     </form>
  </forms>

share-config-custom.xml – second form

<config evaluator="task-type" condition="mcwm:preparationOfProjectCharter">
    <forms>
        <form>
            <field-visibility>
                <show id="mcwm:projectName"/>
                <show id="mcwm:editTask"/>
                <hide id="bpm:workflowDescription" />
                <hide id="bpm:workflowDueDate" />
                <hide id="bpm:workflowPriority" />
                <show id="bpm:assignee" />

                <show id="mcwm:projectName" />
                <show id="mcwm:shortProjectName" />
                <show id="mcwm:projectOrderer" />
                <show id="mcwm:shortProjectOrderer" />
                <show id="mcwm:isoProcess" />
                <show id="mcwm:reporting"/>
                <show id="mcwm:projectGoals"/>
                <show id="mcwm:beginDate"/>
                <show id="mcwm:endDate"/>

                <show id="mcwm:team"/>
                <show id="mcwm:teamResource"/>
                <show id="mcwm:teamComent"/>
                <show id="mcwm:changeComent"/>
             </field-visibility>
            <appearance>
                <set id="" appearance="title" label-id="apppv1.set.projekat" />
                <set id="general" appearance="fieldset" label-id="appppV1.set.general" />
                <set id="date" template="/org/alfresco/components/form/2-column-set.ftl" appearance="fieldset" label-id="appppV1.set.date" />
                <set id="team" appearance="fieldset" label-id="appppV1.set.team" />
                <set id="change" appearance="fieldset" label-id="appppV1.set.change" />


               <field id="mcwm:projectName" set="general" />
               <field id="mcwm:shortProjectName" set="general" />
               <field id="mcwm:projectOrderer" set="general" />
               <field id="mcwm:shortProjectOrderer" set="general" />
               <field id="mcwm:isoProcess" set="general" />
               <field id="mcwm:reporting" set="general" />

               <field id="mcwm:projectGoals" set="general">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl">
                        <control-param name="style">width: 65%</control-param>
                        <control-param name="rows">5</control-param>
                    </control>
                </field>

                <field id="mcwm:beginDate" set="date"/>
                <field id="mcwm:endDate" set="date"/>
                <field id="bpm:assignee" set="team" label="Voditelj projekta"/>
                <field id="mcwm:team" set="team">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl">
                        <control-param name="style">width: 65%</control-param>
                        <control-param name="rows">5</control-param>
                    </control>
                </field>
                <field id="mcwm:teamResource" set="team"/>
                <field id="mcwm:teamComent" set="team">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl">
                        <control-param name="style">width: 65%</control-param>
                        <control-param name="rows">5</control-param>
                    </control>
                </field>

                <field id="mcwm:changeComent" set="change">
                    <control template="/org/alfresco/components/form/controls/textarea.ftl">
                        <control-param name="style">width: 65%</control-param>
                        <control-param name="rows">5</control-param>
                    </control>
                </field>
                <field id="mcwm:editTask" set="general" read-only="true"/>
            </appearance>
        </form>
    </forms>

I try to use in show tag with force=”true” attribute and this show my filed but data aren’t transfered from my start from?!

Thanks in advance for help.

Regards,
Aleksandar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:38:19+00:00Added an answer on May 29, 2026 at 5:38 am

    I think that you are not seeing any fields because mcwm:preparationOfProjectCharter task has no properties that you are trying to display.

    If you want the same properties on second task that you have on first task you will have to define them in your task model.

    If the properties are exactly the same and repeating a lot, you can specify them as an aspect and add them as mandatory aspect in task model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created my own Attached Property like this: public static class LabelExtension {
I have my own asp.net cookie created like this: var authTicket = new FormsAuthenticationTicket(
I have created my own custom role provider class SGI_RoleProvider and configured properly. Everything
I created my own custom keyboard following the the example in the sdk. Now
I have created a custom list view and created my own adapter class I
I've created my own (custom) Dialog. But would like to have its style like
I have created an editable UITableView that supports several custom UITableViewCells of my own
For a site i just build i have created a custom FileField, AudioFileField. In
Hope you can help. I have created my own Custom UIView and I'm trying
I have created my own custom ValidationAttribute : public class UrlValidationAttribute : ValidationAttribute {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.