/** * Copyright 2007-2010 非也 * All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation。 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses. * */ package org.fireflow.service.jdbc.update; import org.fireflow.client.WorkflowSession; import org.fireflow.engine.context.RuntimeContext; import org.fireflow.engine.entity.runtime.ActivityInstance; import org.fireflow.engine.exception.ServiceInvocationException; import org.fireflow.engine.invocation.impl.AbsServiceInvoker; import org.fireflow.model.binding.ServiceBinding; import org.fireflow.model.servicedef.ServiceDef; import org.w3c.dom.Document; /** * @author 非也 nychen2000@163.com * */ public class DBUpdateInvoker extends AbsServiceInvoker { /* (non-Javadoc) * @see org.fireflow.engine.invocation.ServiceInvoker#getServiceType() */ public String getServiceType() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see org.fireflow.engine.invocation.AbsServiceInvoker#getServiceObject(org.fireflow.engine.context.RuntimeContext, org.fireflow.engine.WorkflowSession, org.fireflow.engine.entity.runtime.ActivityInstance, org.fireflow.model.binding.ServiceBinding) */ @Override protected Object getServiceObject(RuntimeContext runtimeContext, WorkflowSession session, ActivityInstance activityInstance, ServiceBinding serviceBinding,ServiceDef svcDef,Object activity) throws ServiceInvocationException { DBUpdateServiceDef service = (DBUpdateServiceDef)svcDef; DBUpdateImpl deleteImpl = new DBUpdateImpl(); deleteImpl.setDBUpdateService(service); return deleteImpl; } @Override protected Class[] getParameterTypes(Class serviceClass, String methodName, Object[] params) throws ServiceInvocationException { Class[] paramTypes = new Class[1]; paramTypes[0] = Document.class; return paramTypes; } }