本文整理汇总了Java中org.activiti.bpmn.model.ActivitiListener.getImplementation方法的典型用法代码示例。如果您正苦于以下问题:Java ActivitiListener.getImplementation方法的具体用法?Java ActivitiListener.getImplementation怎么用?Java ActivitiListener.getImplementation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.bpmn.model.ActivitiListener
的用法示例。
在下文中一共展示了ActivitiListener.getImplementation方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processListener
import org.activiti.bpmn.model.ActivitiListener; //导入方法依赖的package包/类
/**
* 配置监听器.
*/
public void processListener(List<ActivitiListener> activitiListeners,
BpmConfNode bpmConfNode) {
Map<String, Integer> eventTypeMap = new HashMap<String, Integer>();
eventTypeMap.put("start", 0);
eventTypeMap.put("end", 1);
eventTypeMap.put("take", 2);
eventTypeMap.put("create", 3);
eventTypeMap.put("assignment", 4);
eventTypeMap.put("complete", 5);
eventTypeMap.put("delete", 6);
BpmConfListenerManager bpmConfListenerManager = getBpmConfListenerManager();
for (ActivitiListener activitiListener : activitiListeners) {
String value = activitiListener.getImplementation();
int type = eventTypeMap.get(activitiListener.getEvent());
BpmConfListener bpmConfListener = bpmConfListenerManager
.findUnique(
"from BpmConfListener where value=? and type=? and status=0 and bpmConfNode=?",
value, type, bpmConfNode);
if (bpmConfListener == null) {
bpmConfListener = new BpmConfListener();
bpmConfListener.setValue(value);
bpmConfListener.setType(type);
bpmConfListener.setBpmConfNode(bpmConfNode);
bpmConfListenerManager.save(bpmConfListener);
}
}
}
示例2: createClassDelegateTaskListener
import org.activiti.bpmn.model.ActivitiListener; //导入方法依赖的package包/类
public TaskListener createClassDelegateTaskListener(ActivitiListener activitiListener) {
return new ClassDelegate(activitiListener.getImplementation(), createFieldDeclarations(activitiListener.getFieldExtensions()));
}
示例3: createClassDelegateExecutionListener
import org.activiti.bpmn.model.ActivitiListener; //导入方法依赖的package包/类
public ExecutionListener createClassDelegateExecutionListener(ActivitiListener activitiListener) {
return new ClassDelegate(activitiListener.getImplementation(), createFieldDeclarations(activitiListener.getFieldExtensions()));
}