How to realize the free jump of workflow Flowable nodes
The main content of this article is "how to realize the free jump of workflow Flowable nodes". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to realize the free jump of workflow Flowable nodes.
The relevant sample code can be found in the open source code of Flowable. The specific location is as follows:
\ modules\ flowable-engine\ src\ test\ java\ org\ flowable\ engine\ test\ api\ runtime\ changestate
Code:
/ * Mobile node * www.fhadmin.org * / @ RequestMapping (value = "move/ {proInstId} / {nodeId} / {toNodeId}") public void move (@ PathVariable ("proInstId") String proInstId, @ PathVariable ("nodeId") String nodeId, @ PathVariable ("toNodeId") String toNodeId) {runtimeService.createChangeActivityStateBuilder (). ProcessInstanceId (proInstId) .moveActivityIdTo (nodeId, toNodeId). ChangeState () } runtimeService.createChangeActivityStateBuilder (). ProcessInstanceId (proInstId) .moveActivityIdTo (nodeId, toNodeId). ChangeState (); at this point, I believe you have a deeper understanding of "how to realize the free jump of workflow Flowable nodes". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!