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 ?
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.
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="hxwfescription" />
<show id="hxwf:Returnable" />
<show id="hxwf:NonReturnable" />
<show id="hxwf:Qty" />
<show id="hxwfeptHeadSig" />
<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>
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.
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.
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:
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.