How to Suspend A Process Instance using Service Task.
withing service task I have the following code
RuntimeService runtimeService = Context.getProcessEngineConfiguration().getRuntimeService();
log.info("Suspending {}",execution.getProcessInstanceId());
runtimeService.suspendProcessInstanceById(execution.getProcessInstanceId());
But the process seems to be continuing , as usual even after execution of the Service Task .
I am expecting the process should suspend at the service task itself.
How can I achieve that.