title: Issue regarding SlingRequestProcessor in AEM as a Cloud Service not support?
body: <p>In our project there is a requirement, when ever we will click on rollout on parent page it will trigger one workflow and once approver approves the workflow, it will update live copy(locale) automatically or programmatically.</p>
  <p>To achieve this we are using below code (adding [1],[2],[3],[4] in code)</p>
  <pre><code>@Override
  public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException {
  
     try {
        ResourceResolverTemplate.execute(DAM_SERVICE, resolver -&gt; {
        if (workItem.getWorkflowData().getMetaDataMap().get(&quot;rollout_status&quot;).toString().equals(&quot;approved&quot;)) {
  
           WorkflowData workflowData = workItem.getWorkflowData();
           Map&lt;String, Object&gt; params = new HashMap&lt;&gt;();
           for (Entry&lt;String, Object&gt; entry : workflowData.getMetaDataMap().entrySet()) {
              if (entry.getKey().contains(&quot;-&quot;)) {
                 // replacing '-' with ':' for properties having colon eg msm:targetPath,
                 // msm:async.
                 params.put(entry.getKey().replaceFirst(&quot;-&quot;, &quot;:&quot;), entry.getValue());
              } else {
                 params.put(entry.getKey(), entry.getValue());
              }
           }
  
           [1]HttpServletRequest req = requestResponseFactory.createRequest(&quot;POST&quot;, &quot;/bin/wcmcommand&quot;, params);
           [2]ByteArrayOutputStream out = new ByteArrayOutputStream();
           [3]HttpServletResponse response = requestResponseFactory.createResponse(out);
           [4]requestProcessor.processRequest(req, response, resolver); 
           //rollout
         }
      });
     } catch (Exception e) {
        log.error(&quot;Dentsply rollout process step exception: {}&quot;, e.getMessage());
     }
  }
  </code></pre>
  <p>I am able to get req[1] and response[3] but in last step [4] requestprocessor.processRequest it is breaking.</p>
  <p>Same functionality is working fine in our on-prem environment but in cloud it is breaking.</p>
  <p>So my ask here is SlingRequestProcessor supports in AEM cloud? Because I have checked in debug mode once code came in below step and tried to execute processRequest() nothing is happening.</p>
  <p>I am not able to rollout the page programmatically using processRequest() method, do we have any other option?</p>