Last active
April 9, 2019 19:43
-
-
Save marlonramirez/4f993e121cabddb3cd2298ccc881f0bb to your computer and use it in GitHub Desktop.
Move process in flowable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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