package com.vci.server.workflow.server.event.event617; import org.jbpm.api.listener.EventListener; import org.jbpm.api.listener.EventListenerExecution; import org.jbpm.api.model.OpenProcessInstance; import com.vci.common.objects.UserEntity; public class GroupListener implements EventListener { /** * 删除 */ private static final long serialVersionUID = 1L; public void notify(EventListenerExecution eventlistenerexecution) throws Exception { OpenProcessInstance processInstance = eventlistenerexecution.getProcessInstance(); String outcome = (String) processInstance.getVariable("OUTCOME"); String userName = (String) processInstance.getVariable("userName"); String userIP = (String) processInstance.getVariable("userIP"); String userModule = (String) processInstance.getVariable("userModule"); String deploymentId = (String) processInstance.getVariable("deploymentId"); String[] objectids = (String[]) eventlistenerexecution.getProcessInstance().getVariable("objIds"); String btmtype = (String) eventlistenerexecution.getProcessInstance().getVariable("btmtype"); UserEntity user = new UserEntity(); user.setIp(userIP); user.setModule(userModule); user.setUserName(userName); } }