01-18-2011 10:23 PM
01-20-2011 02:18 AM
02-22-2011 05:39 AM
02-23-2011 04:17 AM
your java-classes should be in a seperate JAR-file on the classpath (${activiti tomcat}/webapps/activiti-rest/lib for demo-setup
02-23-2011 09:07 AM
<userTask id="usertask1" name="Abrechnung erstellen" activiti:candidateGroups="lohnbuero" activiti:formKey="/forms/abrechnung_erstellen.form">
<extensionElements>
<activiti:taskListener event="complete" class="de.abrechnung.listeners.StoreLastAssigneeListener"></activiti:taskListener>
</extensionElements>
</userTask>
01230000 Wrapped Exception (with status template): couldn't instantiate class de.abre
chnung.listeners.StoreLastAssigneeListener
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:742)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:167)
.
.
.
Caused by: org.activiti.engine.ActivitiException: couldn't instantiate class de.abrechnung.listeners.StoreLastAssigneeListener
at org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:114)
at org.activiti.engine.impl.bpmn.ClassDelegate.instantiateDelegate(ClassDelegate.java:117)
.
.
.
Caused by: org.activiti.engine.ActivitiException: Couldn't load class de.abrechnung.listeners.StoreLastAssigneeListener
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:64)
at org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:111)
grep "de/abrechnung/listeners/StoreLastAssigneeListener" activiti-5.2/apps/apache-tomcat-6.0.29/webapps/activiti-rest/WEB-INF/lib/*
Binary file activiti-5.2/apps/apache-tomcat-6.0.29/webapps/activiti-rest/WEB-INF/lib/abrechnung-erstellen.jar matches
02-23-2011 09:22 AM
02-23-2011 09:42 AM
package de.abrechnung.listeners;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.impl.pvm.delegate.TaskListener;
public class StoreLastAssigneeListener implements TaskListener {
public void notify(DelegateTask delegateTask) {
delegateTask.setVariable("lastAssignee",delegateTask.getAssignee());
}
}
02-23-2011 09:48 AM
02-23-2011 05:50 PM
02-24-2011 03:32 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.