Skip to content

Instantly share code, notes, and snippets.

@marlonramirez
Last active April 9, 2019 19:43
Show Gist options
  • Save marlonramirez/4f993e121cabddb3cd2298ccc881f0bb to your computer and use it in GitHub Desktop.
Save marlonramirez/4f993e121cabddb3cd2298ccc881f0bb to your computer and use it in GitHub Desktop.
Move process in flowable
package com.mes.berry.controller;
import org.flowable.engine.RuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Backtrack {
@Autowired
private RuntimeService runtimeService;
@RequestMapping("backtrack")
private String hello() {
runtimeService.createChangeActivityStateBuilder()
.processInstanceId("c8f1e924-edc4-11e8-abde-34f39a963367")
.moveActivityIdTo("operation2", "operation4").changeState();
return "ok";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment