cancel
Showing results for 
Search instead for 
Did you mean: 

Updating code for Activiti 5 to Activiti 7 upgrade

PuspitaGhosh
Champ in-the-making
Champ in-the-making

I have a signal class using APS 1.x.x version ACTIVITI 5.x.x. I have to upgrade the Activiti to 7.x.x and APS 2.x.x . So what are the code changes are to be implemented as a part of this update? How to implement using TriggerableActivitiBehavior and using trigger() method?


Below is the code I want to make modifications in.

@Component("asyncReqReplyServiceTask")
public class AsyncReqReplyServiceTask implements SignallableActivityBehavior {


protected static final Logger logger = LoggerFactory.getLogger(AsyncReqReplyServiceTask.class);

private static final long serialVersionUID = 1L;

@override
public void execute(ActivityExecution execution) throws Exception {
logger.info(execution.getId());
}

@override
public void signal(ActivityExecution execution, String signalEvent, Object signalData) throws Exception {
PvmTransition transition = execution.getActivity().getOutgoingTransitions().get(0);
execution.take( transition);
}

0 REPLIES 0