How to use Workflow.newContinueAsNewStub in Dynamic Workflow

Hi,
I’m working Dynamic workflow with serverless DSL. In which I’m having requirement to move to previous stage. I’m searching for example but nothing was found. Can I use Workflow.newContinueAsNewStub in Dynamic Workflow flow?
Thanks in advance.

You can use Workflow.continueAsNew.