Exclude user without email from a form search

Showing results for 
Search instead for 
Did you mean: 
Member II

Exclude user without email from a form search

Hello Everyone

I work on Alfresco 5.2.6, SDK4 with Activiti.

When I start a workflow:

1 - Click on 1 to open a user form search.

2 - Write LEGRAND

3 - Click on search.

There are 2 users found. One user does not have email, I want to exclude him from the research



The form is defined in META-INF/share-config-custom.xml:

    <!-- Wokflow -->
	<config evaluator="string-compare" condition="activiti$partagerEnLecture">
					<show id="bpm:workflowDescription" />
					<show id="girpelwf:collaborateurLecteur" />
					<show id="packageItems" />
					<set id="" appearance="title" label-id="workflow.set.general" />
					<set id="personne" appearance="title" label="Personne assignée" />
					<set id="items" appearance="title" label-id="workflow.set.items" />
					<field id="bpm:workflowDescription" label-id="workflow.field.message">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="style">width: 95%</control-param>
					<field id="girpelwf:collaborateurLecteur" set="personne" label-id="workflow.partagerEnLecture.collaborateurLecteur" />
					<field id="packageItems" set="items">
						<control template="partagerEnLecture/components/form/controls/packageitemsPELstartTask.ftl">
							<control-param name="startLocation">/app:company_home/st:sites</control-param>

The user form search is defined with : <set id="personne" appearance="title" label="Personne assignée" />

What to do to exclude user without email from the search ?

Thank's you

Best regards


1 Reply

Re: Exclude user without email from a form search

Without Email , How you have created user?

You need to override webscript get all user where email is there.