05-04-2011 08:03 AM
06-15-2011 10:05 AM
06-20-2011 09:39 AM
<bean id="config" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="customPreBPMNParseListeners">
<util:list>
<ref bean="userGroupsCheckParseListener"/>
</util:list>
</property>
</bean>
<bean id="userGroupsCheckParseListener" class="my.UserGroupsCheckParseListener">
<property name="userGroupsCheckTaskListener">
<bean class="my.UserGroupsCheckTaskListener"/>
</property>
</bean>
06-20-2011 09:42 AM
06-20-2011 10:51 AM
Once the engine is created, the ProcessEngineConfiguration shouldn't be alteredyet adding custom groupmanager and usermanager implementations via the SpringProcessEngineConfiguration requires us to do exactly that, and that's even the "official" way of doing it AFAIK 🙂
06-20-2011 10:57 AM
06-20-2011 01:24 PM
When you use the API from within a taskListener, you actually execute a new command from within a running command. If the datasource is transaction-aware (in case of spring), you'll use the same connection as the command-context of the calling command. If not, a fresh one is used. In both cases, all changes done in the first command, aren't visible to the second command, since the changes aren't flushed yet
06-20-2011 03:10 PM
06-21-2011 06:13 AM
04-10-2019 12:50 AM
Am very new to this , can you please explain in detail steps for how to achieve this .
1. I cliked on task listner of userTask B ..... and event on Create and i gave task listner class(which is showing error that class not found exception " my.FourEyesTaskListener")
2. Where to write this class and the below code ... and how to get task A assigne here (String userId = … Is it some thing like task.getAssignee():smileywink: please correct me if am wrong.
public class FourEyesTaskListener implements TaskListener {
// injected by activiti
private String fourEyesTask;
// see http://www.activiti.org/javadocs/org/activiti/engine/delegate/DelegateTask.html
public void notify(DelegateTask delegateTask) {
// find out the user id that executed the four eyes task
String userId = ….
//
delegateTask.deleteCandidateUser(userId);
}
}
Please help me with some screenshot example.
04-10-2019 01:20 AM
Hi,
Please have a look at this blog post if you are using APS enterprise.
If you are using activiti 6 and want to accomplish the custom task assignement please use custom taskk listeners
Note: you can use the above code by just annotating it with @componenet steroetype from spring so that you will not get class not found exception.
I hope this much info is useful for you.
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.