Skip to main content

Create tasks

Each time an extensible object is created or modified, a new synchronization task should be created:

 

	void generateTask(ClearanceEntity entity)
	{
		TaskEntity task = getTaskEntityDao().newTaskEntity();
		task.setTransaction(TaskHandler.UPDATE_EXT_OBJECT);
		task.setPrimaryKeyValue(entity.getId());
		task.setCustomObjectType("clearance");
		getTaskEntityDao().create(task);
	}