05-31-2022 08:25 AM
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);
}
Explore our Alfresco products with the links below. Use labels to filter content by product module.