The following trigger copies a task to the Knowledge Base (task #2 in this example) when user adds a 003 Close message.
String copyTo = "2"; if(message.getMstatus().getName().equals("003 Close")) { AdapterManager.getInstance().getSecuredTaskAdapterManager().pasteTasks(message.getSecure(), AdapterManager.getInstance().getSecuredTaskAdapterManager().findTaskIdByQuickGo( message.getSecure(), copyTo), new String[]{message.getTaskId()},"SINGLE_COPY"); } return message;
Copyright (c) 2002-2006. All rights reserved.
|