package com.vci.event.mpm;
|
|
import org.jbpm.api.listener.EventListener;
|
import org.jbpm.api.listener.EventListenerExecution;
|
|
import com.vci.common.objects.UserEntity;
|
|
public class RejiggerStatusListener extends StatusListener implements EventListener{
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
String linkType; //判断是EBOM,还是PBOM
|
String rejiggerStatus;//状�?参数,接收传进来的参�?
|
|
public void notify(EventListenerExecution eventListenerExecution) throws Exception {
|
// TODO Auto-generated method stub
|
// String outcome = (String) eventListenerExecution.getProcessInstance().getVariable("OUTCOME");
|
String userName = (String) eventListenerExecution.getProcessInstance().getVariable("userName");
|
String userIP = (String) eventListenerExecution.getProcessInstance().getVariable("userIP");
|
String userModule = (String) eventListenerExecution.getProcessInstance().getVariable("userModule");
|
|
String[] objIds = (String[]) eventListenerExecution.getProcessInstance().getVariable("objId");
|
String boType = (String) eventListenerExecution.getProcessInstance().getVariable("boType");
|
|
UserEntity user = new UserEntity();
|
user.setIp(userIP);
|
user.setModule(userModule);
|
user.setUserName(userName);
|
|
doAction(user, rejiggerStatus, objIds, boType,linkType);
|
}
|
}
|