You can use Create and Resolve Incidents through Scripts(Javascript examples) (Internal API) to get the execution/parent scope. But this is internal API. I would recommend that you just use a end-execution listener that Evals a local variable in the connector to veal the status code. Or recreate http connector as a java delegate or look at: Replacing Http-Connector with Jsoup usage
1 Like