Another important thing to verify is that, your process is not leaking file descriptors or handles, well that's a tedious thing to find out, but you can use lsof command to check how many open file handles is owned by a particular process inUNIX or Linux.
0 or 1 => mandatory = false and many = false
1 => mandatory = true and many = false
0 or more => mandatory = false and many = true
1 or more => mandatory = true and many = true
//execute query to find the user nodevar luceneQuery ="@usr\\:username:\"johndoe\"";var userStoreReference ="user://alfrescoUserStore";var usersResultList =
search.luceneSearch(userStoreReference, luceneQuery);//get the user node and change enable propertyvar userInTheUserStore = usersResultList[0];
userInTheUserStore.properties["usr:enabled"]=false;
userInTheUserStore.save();
You can't use text columns in an equal operation of a WHERE clause. If you are using SQL Express or SQL Server 2005, change your column type from text to either varchar(max) or nvarchar(max)
Some of the commands will make batch file to exit inbetween. To avoid this we need to have the call statement. Example is as below
@echo off
rem -------
rem Script for apply AMPs to installed WAR
rem -------
set hpi_source_loc=C:\AlfrescoIRM\hpi
set hpi_contextname=hpi1
set consolidatedBuildLocation=C:\ConsolidatedBuild\allbuilds
echo Create the HPI war
cd %hpi_source_loc%
call grunt tomcatDebug --project=patil-employee-onboarding --contextname=%hpi_contextname% --env=BLRKA3300
echo Completed the creation of Amp for the HPI code , now copy to the location %consolidatedBuildLocation%
xcopy /s "%hpi_source_loc%\DIST\hpi.war" %consolidatedBuildLocation%