How to remove workflow default alfresco properties from share?

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

How to remove workflow default alfresco properties from share?

I have created Custom Workflow and custom task properties assigned to it, when i open workflow from share , i can see the workflow in the list and it shows the defined custom properties , along with that some default properties comes with that ie. Workflow due date, Workdlow description etc, how we can remove that properties? I have already hidden those fields in share config file? but still it is showing.Any idea to remove such properties ?

5 Replies
Established Member

Re: How to remove workflow default alfresco properties from share?

If you want to hide properties from workflow start form, then copy the following code to your share-config-custom.xml.

<config evaluator="string-compare" condition="activiti$your_Process_Id">

      <forms>

         <form>

            <field-visibility>

               <hide id="bpm:workflowDescription" />               

                <hide id="bpm:workflowDueDate" />      

            </field-visibility>

        </form>

      </forms>

 </config>

Add your required property to hide element within field-visibility element.

Active Member

Re: How to remove workflow default alfresco properties from share?

Thanks for the reply rohit.

Actually i am hiding those properties in share config custom file already, still it is displayed over there. this is what i written in share config custom file

<config evaluator="string-compare" condition="activiti$myprocess" >
<forms>
<form>
<field-visibility>
<show id="hxwfSmiley Very Happyescription" />
<show id="hxwf:Returnable" />
<show id="hxwf:NonReturnable" />
<show id="hxwf:Qty" />
<show id="hxwfSmiley Very HappyeptHeadSig" />
<show id="hxwf:CarrierSig" />
<show id="hxwf:Remarks" />
<hide id="bpm:workflowDescription" />
<hide id="bpm:workflowDueDate" />
<hide id="bpm:workflowPriority" />
<hide id="bpm:status" />
</field-visibility>
</form>
</forms>
</config>

Established Member

Re: How to remove workflow default alfresco properties from share?

If you are using show element than it shows the given properties and hides the rest of all properties which are not mentioned in show elements. So I recommend you to remove all hide elements and test your result. And let me know if it's helpful.

Active Member

Re: How to remove workflow default alfresco properties from share?

Actually i have written only show elements  in share config file, but these default properties shown up with the custom ones, then i tried to hide those properties , that didn't worked. even when i delete all the show elements of custom properties from share config file, still the default properties alone shows in starting the workflow.i am not aware that from where these properties getting overridden.

 

<type name="hxwf:Task1">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
<aspect>hxwf:Gatepassaspect</aspect>
</mandatory-aspects>
</type>

this is my model.xml definition of particular task, when i remove remove bpm:start task from here, i cannot see any of the properties.

Established Member

Re: How to remove workflow default alfresco properties from share?

You can either use hide element or show element. Following is the configuration and its result

Last property is custom property all other are properties are from bpm:startTask. If you edit the share-config-custom.xml as following then you will get the desired result.

After doing all this if still, the problem persists check condition="activiti$myprocess" is same as the processID in your process definition file.

For more information visit the following link:

https://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html#step-1-...