title: Camunda synchronous process instance wont suspend
body: <p>I would like to suspend an synchronous running process instance if I encounter some error to give admin some time to rectify the error and then he can resume the process instance using its id.</p>
  <p>I am trying to suspend a running process instance from java delegate class but it does not seem to suspend.</p>
  <p>Below is my code -</p>
  <pre><code>public class Generate_DT_PS_CCS implements JavaDelegate {
  
     @Override
     public void execute(DelegateExecution execution) throws Exception {
              RuntimeService runtimeService = execution.getProcessEngineServices().getRuntimeService();
  
              String pid =execution.getProcessInstanceId();
              System.out.println(&quot;supending the instance - process id &quot; +pid);
              runtimeService.suspendProcessInstanceById(execution.getProcessInstanceId());
  
     }
  }     
            
  </code></pre>
  <p>Is there any issue in suspend the synchronous service task in Camunda?</p>