cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Priority is coming as none on Edit Task form

swati
Champ in-the-making
Champ in-the-making
Hi,

I am setting up Priority as High on Workflow Details Form. But when I check it on Edit Task page it is coming as None.

I am not sure what is going wrong here.

Please suggest.
6 REPLIES 6

romschn
Star Collaborator
Star Collaborator
Are you facing the issue for any specific workflow or for all workflows you are observing this behavior? Also, are you using out-of-the-box workflows or any custom workflow you have created and facing this issue?

swati
Champ in-the-making
Champ in-the-making
Yes, I am facing this issue for Concurrent(Parallel) and sequential approval document workflow and these are customized ones.

romschn
Star Collaborator
Star Collaborator
okay, just make sure that for your custom workflow, the workflow task that you have defined in the workflow model is having parent as bpm:workflowTask. Also, hoping that you are using bpmSmiley Tongueriority property in the share-config-custom.xml to display the priority value in the workflow task form.

Hope this helps.

swati
Champ in-the-making
Champ in-the-making
I checked all configurations and it seems good everywhere. I also checked the OOTB behavior and it is showing priority as value as expected.
I am not getting the difference between bpmSmiley Tongueriority and wfSmiley Tongueriority. Does it affect priority property..?

romschn
Star Collaborator
Star Collaborator
In the bpmModel.xml where the core content modeling for any workflow resides, bpmSmiley Tongueriority property under the bpm:task content type is the one which holds the value for the workflow priority.
I am not sure about wfSmiley Tongueriority field as I have not seen it in any of the out-of-the-box workflows, it looks like it is a new field you may have added for your custom workflow. Is that correct?

In the workflow task configuration in share-config-custom.xml, I am not sure which value you are using to show the workflow priority field. However, if you are using bpmSmiley Tongueriority field then it should have been displayed having your workflow task defined in workflow model is having parent as bpm:workflowTask. Is there anything specific you have done in order to display the priority value using a different field?

Hope this helps.

swati
Champ in-the-making
Champ in-the-making
I can see below configuration in bpmmodel.xml:

For Default Start Task
<type name="bpm:startTask">
            <parent>bpm:workflowTask</parent>

            <properties>

                <!–  Description for the workflow as a whole –>
                <property name="bpm:workflowDescription">
                    <type>d:text</type>
                    <constraints>
                        <constraint ref="bpm:allowedDescriptionLength"/>
                    </constraints>
                </property>

                <!–  Due date for the workflow as a whole –>
                <property name="bpm:workflowDueDate">
                    <type>d:date</type>
                    <mandatory>true</mandatory>
                </property>

                <!–  Priority for the workflow as a whole –>
                <property name="bpm:workflowPriority">
                    <type>d:int</type>
                    <default>2</default>
                    <constraints>
                        <constraint ref="bpm:allowedPriority" />
                    </constraints>
                </property>

        While,    
<!–                                                 –>
        <!–  The base for all Tasks assigned via a Workflow –>
        <!–                                                 –>

        <type name="bpm:workflowTask">
            <parent>bpm:task</parent>

            <properties>

                <!–  Task Context          –>
                <!–  e.g. Space, Document  –>
                <property name="bpm:context">
                    <type>d:noderef</type>
                </property>

                <!–  Task Outcome –>
                <property name="bpmSmiley Surprisedutcome">
                    <!– NOTE: Transition id –>
                    <type>d:text</type> 
                </property>

                <!–  Items within package marked as complete –>
                <property name="bpm:completedItems">
                    <type>d:noderef</type>
                    <multiple>true</multiple>
                </property>

                <!–  Applicable actions for workflow package –>
                <property name="bpmSmiley TongueackageActionGroup">
                    <type>d:text</type>
                    <!– NOTE: empty default specified, therefore no actions –>
                    <default></default>
                </property>

                <!–  Applicable actions for workflow package item –>
                <property name="bpmSmiley TongueackageItemActionGroup">
                    <type>d:text</type>
                    <default>read_package_item_actions</default>
                </property>

                <!– List of "hidden" transitions to consider masking from user –>
                <property name="bpm:hiddenTransitions">
                    <type>d:text</type>
                    <multiple>true</multiple>
                    <default></default>
                </property>
               
                <!– Flag to determine whether the owner can reassign their task –>
                <property name="bpm:reassignable">
                   <type>d:boolean</type>
                   <default>true</default>
                </property>
            </properties>

            <associations>

                <association name="bpmSmiley Tongueackage">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>bpm:workflowPackage</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>

            </associations>

        </type>
    Now I am not sure which property getting displayed. My share-custom-config.xml contains :
<config evaluator="task-type" condition="wf:approvedParallelTask">
      <forms>
         <form>
            <field-visibility>
               <show id="message" />
               <show id="taskOwner" />
               <show id="bpmSmiley Tongueriority" />
               <show id="bpm:dueDate" />
               <show id="bpm:taskId" />

Please suggest. I am totally new to workflow configuration in Alfresco.