Subversion Repositories SmartDukaan

Rev

Rev 6894 | Rev 7100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6894 Rev 7099
Line 1122... Line 1122...
1122
	 * 
1122
	 * 
1123
	 * @return A List of entities fetched from the catalog.
1123
	 * @return A List of entities fetched from the catalog.
1124
	 */
1124
	 */
1125
	private void createEntitiesForItemsInProcess(){
1125
	private void createEntitiesForItemsInProcess(){
1126
		//Do once in every hour
1126
		//Do once in every hour
1127
		if (new Date().getTime() - lastEntityCreation.getTime() > 60*60*1000) {
1127
		if (new Date().getTime() - lastEntityCreation.getTime() > 20*60*1000) {
1128
			try {
1128
			try {
1129
				CatalogClient csc = new CatalogClient();
1129
				CatalogClient csc = new CatalogClient();
1130
				in.shop2020.model.v1.catalog.CatalogService.Client iclient = csc.getClient();
1130
				in.shop2020.model.v1.catalog.CatalogService.Client iclient = csc.getClient();
1131
				List<Item> items = iclient.getAllItemsByStatus(status.IN_PROCESS);
1131
				List<Item> items = iclient.getAllItemsByStatus(status.IN_PROCESS);
1132
				for(Item item: items){
1132
				for(Item item: items){