Anda di halaman 1dari 4

SystemActions: /** * -------------------------------------------------------------------------------* ----------------------- ITServiceDesk Processes -------------------------*/ /** * SVD proxy process list of actions (RANGE SVD000-SVD099

) */ public static final String SVD_PROXY_OPEN_TICKET_SERVICE_STARTED = "SVD000"; public static final String SVD_PROXY_OPEN_TICKET_SERVICE_COMPLETED = "SVD001"; public static final String SVD_PROXY_UPDATE_TICKET_SERVICE_STARTED = "SVD002"; public static final String SVD_PROXY_UPDATE_TICKET_SERVICE_COMPLETED = "SVD003"; public static final String SVD_PROXY_GET_CUSTOMER_LIST_SERVICE_STARTED = "SVD004"; public static final String SVD_PROXY_GET_CUSTOMER_LIST_SERVICE_COMPLETED = "SVD005"; /** * OpenTicket process list of actions (RANGE SVD100-SVD199 ) */ public static final String OPEN_TICKET_PROCESS_OPEN_TSRM_TICKET "SVD100"; public static final String OPEN_TICKET_PROCESS_OPEN_CRM_TICKET "SVD101"; /** * UpdateTicket process list of actions (RANGE SVD200-SVD299 ) */ public static final String UPDATE_TICKET_PROCESS_UPDATE_TSRM_TICKET "SVD200"; public static final String UPDATE_TICKET_PROCESS_UPDATE_CRM_TICKET "SVD201"; /** * GetCustomerList process list of actions (RANGE ) */ public static final String GET_CUSTOMER_LIST_PROCESS_GET_CUSTOMER_LIST = "SVD300"; = = = =

SystemServices:

// ITServiceDesk Services

public static String SERVICE_ID_SERVICE_DESK_OPEN_TICKET 1"; public static String SERVICE_ID_SERVICE_DESK_UPDATE_TICKET 2"; 3";

= "SVD_00 = "SVD_00

public static String SERVICE_ID_SERVICE_DESK_GET_CUSTOMER_LIST = "SVD_00 /** * List of Processes that associated with ITServiceDesk ticket service * these constants are used to customize logger to display the process n ame */ public static String = "SVD_Proxy"; public static String = "SVD_OpenTicket"; public static String = "SVD_UpdateTicket"; public static String = "SVD_GetCustomerList"; PROCESS_NAME_SERVICE_DESK_PROXY_PROCESS PROCESS_NAME_SERVICE_DESK_OPEN_TICKET_PROCESS PROCESS_NAME_SERVICE_DESK_UPDATE_TICKET_PROCESS PROCESS_NAME_SERVICE_DESK_GET_CUSTOMER_LIST_PROCESS

SystemCodes: /** * IT Service Desk Errors */ public static final String ERROR_SVD_UNABLE_TO_OPEN_TSRM_TICKET D001"; public static final String ERROR_SVD_UNABLE_TO_OPEN_CRM_TICKET D002"; public static final String ERROR_SVD_UNABLE_TO_UPDATE_TSRM_TICKET = "SV D003"; public static final String ERROR_SVD_UNABLE_TO_UPDATE_CRM_TICKET D004"; public static final String ERROR_SVD_UNABLE_TO_GET_CUSTOMER_LIST D005"; = "SV = "SV = "SV = "SV

System

/** * Method generated to support implementation of operation "logSystemSer vice" defined for WSDL port type * named "LoggerInterface". * * Please refer to the WSDL Definition for more information * on the type of input, output and fault(s). */

public void logSystemService(DataObject systemServiceLog) { commonj.sdo.DataObject servicelog; {// create Itcc1System_Service_Log com.ibm.websphere.bo.BOFactory factory = (com.ibm.websphere.bo.BOFactory) new com.ibm.webspher e.sca.ServiceManager().locateService("com/ibm/websphere/bo/BOFactory"); servicelog = factory.create("http://SystemServiceModule. sa.com.itcc/jdbc/itcc1system_service_log","Itcc1System_Service_Log"); } servicelog.setString("action_id", systemServiceLog.getString("ac tion_id")); servicelog.setString("log_status", systemServiceLog.getString("l og_status")); servicelog.setString("product_id", systemServiceLog.getString("p roduct_id")); servicelog.setString("request_id", systemServiceLog.getString("r equest_id")); locateService_ServiceLogJDBCImportPartner().invoke( "createSystemServiceLog", servicelog); debug(B1LoggerConf.SYSTEM_LOGGER_NAME, "logSystemService, reqId = " + systemServiceLog.getString("request_id") + ".. " + BusinessObjectParser.getXMLStringFromBO(system ServiceLog)); }

public void logTransactionData(DataObject transactionData) { commonj.sdo.DataObject dataLog; {// create Itcc1Transaction_Data_Log com.ibm.websphere.bo.BOFactory factory = (com.ibm.websphere.bo.BOFactory) new com.ibm.webspher e.sca.ServiceManager().locateService("com/ibm/websphere/bo/BOFactory"); dataLog = factory.create("http://SystemServiceModule.sa. com.itcc/jdbc/itcc1transaction_data_log","Itcc1Transaction_Data_Log"); } dataLog.setString("request_id", transactionData.getString("reque st_id")); dataLog.setString("sender_id", transactionData.getString("sender _id")); dataLog.setString("receiver_id", transactionData.getString("rece iver_id")); dataLog.setBytes("data", transactionData.getString("data")==null ? new byte[0]:transactionData.getString("data").getBytes()); dataLog.setString("action_id", transactionData.getString("action _id"));

locateService_DataLogJDBCImportPartner().invoke( "createTransactionDataLog", dataLog); debug(B1LoggerConf.SYSTEM_LOGGER_NAME, "logTransactionData, reqI d = " + transactionData.getString("request_id") + ".. " + BusinessObjectParser.getXMLStringFromBO(transa ctionData)); }

Anda mungkin juga menyukai